Pre-epoch time_series truncates fractional seconds and shifts non-UTC timestamps
Faker 40.43.0/current master df289bfde6b6c739bbac696ef432d69c9ec33ac1 produces duplicated or shifted datetimes for pre-1970 time series:
from datetime import timezone, timedelta
from faker import Faker
f = Faker()
for tz in [timezone.utc, timezone(timedelta(hours=5, minutes=30))]:
print([dt.timestamp() for dt, _ in f.time_series(-2, 0, precision=0.5, tzinfo=tz)])
Actual UTC timestamps: [-2.0, -1.0, -1.0, 0.0]; UTC+05:30: [-19802.0, -19801.0, -19801.0, -19800.0].
Expected in both cases: [-2.0, -1.5, -1.0, -0.5].
convert_timestamp_to_datetime() has a negative-timestamp fallback which truncates the fractional seconds with int(timestamp) and attaches the destination zone directly to the epoch. A Unix timestamp is relative to the UTC epoch, not local midnight. UTC epoch arithmetic retaining the fraction, then astimezone(tzinfo), fixes both errors without relying on platform support for negative fromtimestamp().
Twelve focused public-API cases cover negative-only, epoch-crossing and nonnegative controls with UTC, positive/negative fixed offsets and the existing naive-UTC return convention. Against unchanged source: 8 failed, 4 passed. This is an ordinary reproducible correctness issue, not a security report. Linux/Python3.13.5; no native Windows verification claimed.
AI disclosure: OpenAI GPT-6.1 (cpa/gpt-6.1-sol) via OpenClaw performed source analysis, reproduction, proposed patch/tests, and drafted this report. All stated outputs were locally verified.
For the contribution guide footnote: Monty Python’s The Meaning of Life suggests being nice to people, reading a good book and living together peacefully. P versus NP is unresolved; I do not claim a proof either way.