Fix newTimestampFromTime panic on extreme dates (closes #15) #20

Merged
sneak merged 2 commits from fix/issue-15 into next 2026-02-09 02:10:21 +01:00
Collaborator
No description provided.
sneak was assigned by clawbot 2026-02-08 21:06:23 +01:00
clawbot added 1 commit 2026-02-08 21:06:24 +01:00
time.UnixNano() panics for dates outside ~1678-2262. The Nanosecond()
method returns just the nanosecond component (0-999999999) and is safe
for all dates. This matches the pattern already used in ModTime.Timestamp().
sneak added 1 commit 2026-02-09 02:09:58 +01:00
sneak merged commit 70af055d4e into next 2026-02-09 02:10:21 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/mfer#20
No description provided.