commit | d59a047a7070dc6af13b2e35c097efccc8ce38d0 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Nov 10 21:09:22 2003 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Nov 10 21:09:22 2003 +0000 |
tree | 7efbd7a8fd2e4d871da3165dab7287c49fb0341e | |
parent | 7832933eed3cb0187eca4fba87076f10c897925e [diff] [blame] |
nginx-0.0.1-2003-11-11-00:09:22 import
diff --git a/src/os/unix/ngx_time.c b/src/os/unix/ngx_time.c index 12256e1..bf3432b 100644 --- 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; }