From d59a047a7070dc6af13b2e35c097efccc8ce38d0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 10 Nov 2003 21:09:22 +0000 Subject: nginx-0.0.1-2003-11-11-00:09:22 import --- src/os/unix/ngx_time.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/os/unix/ngx_time.c') diff --git a/src/os/unix/ngx_time.c b/src/os/unix/ngx_time.c index 12256e13a..bf3432ba7 100644 --- a/src/os/unix/ngx_time.c +++ b/src/os/unix/ngx_time.c @@ -1,11 +1,12 @@ #include -#include +#include + void ngx_localtime(ngx_tm_t *tm) { - time_t clock = time(NULL); - localtime_r(&clock, tm); + localtime_r(&ngx_cached_time, tm); + tm->ngx_tm_mon++; tm->ngx_tm_year += 1900; } -- cgit v1.2.3