aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32/ngx_time.c')
-rw-r--r--src/os/win32/ngx_time.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/os/win32/ngx_time.c b/src/os/win32/ngx_time.c
index 43d2c41cb..cef335707 100644
--- 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;
+}