diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 4239a4a3fc..2422e0529e 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3102,7 +3102,7 @@ gettimeofday(struct timeval *tv, struct timezone *tz) the first leap second is at 1972/06/30, so we doesn't need to think about it. */ lt /= 10000; /* to msec */ - lt -= (LONG_LONG)(369 * 365 + 24 * 3 + 17) * 24 * 60 * 60 * 1000; + lt -= (LONG_LONG)((1970-1601)*365.2425) * 24 * 60 * 60 * 1000; tv->tv_sec = lt / 1000; tv->tv_usec = lt % 1000; |