From e772e8fef51291f8386cf3d85e4da56928c9a86b Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 21 Apr 2004 20:13:48 +0000 Subject: nginx-0.0.3-2004-04-22-00:13:48 import --- src/os/unix/ngx_time.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/os/unix/ngx_time.h') diff --git a/src/os/unix/ngx_time.h b/src/os/unix/ngx_time.h index bb03e994b..0b44c5ad4 100644 --- a/src/os/unix/ngx_time.h +++ b/src/os/unix/ngx_time.h @@ -35,6 +35,18 @@ typedef struct tm ngx_tm_t; #define ngx_tm_wday_t int +#if (SOLARIS) +#define HAVE_TIMEZONE 1 + +#define ngx_timezone() (-((daylight) ? altzone : timezone) / 60) + +#elif defined __linux__ +#define HAVE_TIMEZONE 1 + +#define ngx_timezone() (- timezone / 60 + daylight * 60) + +#endif + void ngx_localtime(ngx_tm_t *tm); -- cgit