Skip to content

Commit 9a484d5

Browse files
fix int overflow in 32-bit
1 parent 02a97ed commit 9a484d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const DN_GREGORIAN_CALENDAR = -100840 + DATENUM_OFFSET
2323
# returns 0000-12-31T00:00:00
2424
# 678576 is the output of datenum_prolepticgregorian(-1,12,31)
2525

26-
const DATETIME_OFFSET = Dates.Millisecond(678576 * (24*60*60*1000))
26+
const DATETIME_OFFSET = Dates.Millisecond(678576 * (24*60*60*Int64(1000)))
2727

2828

2929
"""

0 commit comments

Comments
 (0)