diff options
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 2fff26852..18ae4b76c 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2909,8 +2909,7 @@ int sqlite3UnixCurrentTime(double *prNow){ *prNow = t/86400.0 + 2440587.5; #else struct timeval sNow; - struct timezone sTz; /* Not used */ - gettimeofday(&sNow, &sTz); + gettimeofday(&sNow, 0); *prNow = 2440587.5 + sNow.tv_sec/86400.0 + sNow.tv_usec/86400000000.0; #endif #ifdef SQLITE_TEST |