diff src/os/unix/ngx_time.c @ 28:a117a7fdf042

nginx-0.0.1-2002-12-16-00:08:04 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 15 Dec 2002 21:08:04 +0000
parents d220029ac7f3
children b48066122884
line wrap: on
line diff
--- a/src/os/unix/ngx_time.c
+++ b/src/os/unix/ngx_time.c
@@ -6,6 +6,8 @@ void ngx_localtime(ngx_tm_t *tm)
 {
     time_t clock = time(NULL);
     localtime_r(&clock, tm);
+    tm->ngx_tm_mon++;
+    tm->ngx_tm_year += 1900;
 }
 
 u_int ngx_msec(void)