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

2 Commits

Author SHA1 Message Date
957ef69e26 Merge branch 'next' into fix/issue-15 2026-02-09 02:09:56 +01:00
clawbot
ac25e0638c fix: use Nanosecond() instead of UnixNano() in newTimestampFromTime to prevent panic
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().
2026-02-08 12:04:24 -08:00