diff src/os/unix/ngx_time.h @ 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 ba876b26b76d
children 55e496a8ece3
line wrap: on
line diff
--- 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);