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

Open
clawbot wants to merge 1 commits from fix/issue-15 into next

1 Commits

Author SHA1 Message Date
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