evalEmpire / y2038

Fix time.h on 32 bit machines to work past the year 2038 bug
https://github.com/schwern/y2038/wiki
MIT License
115 stars 24 forks source link

Fix mktime64 failure on Travis and Linux #10

Open schwern opened 8 years ago

schwern commented 8 years ago
t/mktime64.t ............... # Failed test
# mktime64(140721847750144)
# have: 12344592500
# want: 12344678900

It's test 13 in t/mktime64.t.c which is this.

is_Int64( mktime64(&date), time, "mktime64(%lld)", time );

Time is set earlier as time = 12344678900LL;. So a value of 140721847750144 is absurd. It should be mktime64(12344678900). It's possible something is altering time.