bebbo / libnix

libnix (v4): a C link library for AmigaOS/m68k
14 stars 9 forks source link

gettimeofday() is 8 years behind #70

Closed Midar closed 8 months ago

Midar commented 11 months ago

gettimeofday() returns a timestamp that is 8 years minus 1 hour behind. That suspiciously sounds like UNIX timestamp vs. Amiga timestamp with incorrect DST correction. And looking at sources/nix/time/gettimeofday.c, it just uses GetSysTime, without any correction, does DST correction, but not apply the offset of 252460800.