diff options
Diffstat (limited to 'src/os/unix/ngx_time.h')
-rw-r--r-- | src/os/unix/ngx_time.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/os/unix/ngx_time.h b/src/os/unix/ngx_time.h index 793e32e7c..0ead0d837 100644 --- a/src/os/unix/ngx_time.h +++ b/src/os/unix/ngx_time.h @@ -42,8 +42,14 @@ typedef struct tm ngx_tm_t; #endif -#if (SOLARIS) +#if (NGX_SOLARIS) + #define ngx_timezone(isdst) (- (isdst ? altzone : timezone) / 60) + +#else + +#define ngx_timezone(isdst) (- (isdst ? timezone + 3600 : timezone) / 60) + #endif |