diff src/os/win32/ngx_time.c @ 324:0ab66f4b6c4d

nginx-0.0.3-2004-04-22-00:13:48 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Apr 2004 20:13:48 +0000
parents 00cafae0bdf1
children 0a03c921c81d
line wrap: on
line diff
--- a/src/os/win32/ngx_time.c
+++ b/src/os/win32/ngx_time.c
@@ -29,3 +29,15 @@ void ngx_gettimeofday(struct timeval *tp
     tp->tv_sec = (long) (intervals / 10000000);
     tp->tv_usec = (long) ((intervals % 10000000) / 10);
 }
+
+
+ngx_int_t ngx_timezone(void)
+{
+    TIME_ZONE_INFORMATION  tz;
+
+    if (GetTimeZoneInformation(&tz) != TIME_ZONE_ID_INVALID) {
+        return -tz.Bias;
+    }
+
+    return 0;
+}