-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
Round-trip conversion tests for unixAndTzidToIso8601() are failing in GitHub CI with a 24-hour (86400000ms) difference, but pass locally.
Failing Tests
round-trips correctly with explicit UTC timezonehandles edge cases around midnight with explicit UTC
Error
AssertionError: expected 86400000 to be less than 60000
Environment Differences
- Local: Tests pass (21/21)
- CI: Tests fail with 24-hour difference
- CI Environment: Ubuntu, Node.js 20, UTC timezone
- Local Environment: macOS, Node.js 22, America/Los_Angeles timezone
Investigation Needed
- Why is there a 24-hour difference in CI but not locally?
- Is
Intl.DateTimeFormatwithtimeZoneName: 'longOffset'producing different results in CI? - Are date components being formatted differently in CI?
- Is there a timezone data difference between environments?
Current Implementation
The function uses Intl.DateTimeFormat with timeZoneName: 'longOffset' to get the offset directly, which should be environment-independent, but something is still different in CI.
Related
Part of Issue #150 - Create Time Conversion Utilities
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels