Mercurial > hg > nginx
diff src/os/unix/ngx_time.c @ 178:a8ff48d26cca
nginx-0.0.1-2003-11-11-00:09:22 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Nov 2003 21:09:22 +0000 |
parents | b48066122884 |
children | 9f3a78b06c48 |
line wrap: on
line diff
--- a/src/os/unix/ngx_time.c +++ b/src/os/unix/ngx_time.c @@ -1,11 +1,12 @@ #include <ngx_config.h> -#include <ngx_time.h> +#include <ngx_core.h> + 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; }