You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(protocols): PCAP-NG timestamps outside Windows' fromtimestamp range render as 1970 #2099
Job 120605026883, the first Windows run of #2095's leg: test_pcapng_tzone_tsoffset_range_1340_unit::test_tsoffset_in_range_is_unchanged fails for -62135510400 and 253402214399 with PCAP-NG: [Block 6] invalid timestamp, and the frame is dated 1970.
Inferred (the log does not show which exception): Windows' datetime.fromtimestamp(..., tzone) cannot handle these in-range year-1 and year-9999 epochs, so the fallback fires.
Proposed: compute datetime(1970, 1, 1, tzinfo=utc) + timedelta(seconds=…) and then .astimezone(tzone), which does not depend on the C runtime. This is a #2060 phase-2 prerequisite.
Activity
fix(protocols): convert capture timestamps without the platform's fro…
fix(protocols): convert capture timestamps without the platform's fro…