aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_time.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-15 21:08:04 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-15 21:08:04 +0000
commit5eef618ed671c55bc1244652cb49afef224c833c (patch)
tree593b11f615eb39e824c8e8d45ada176ae264de0d /src/os/unix/ngx_time.c
parent6e4bca966e723a2162a0f183f4f520115e0fba32 (diff)
downloadnginx-5eef618ed671c55bc1244652cb49afef224c833c.tar.gz
nginx-5eef618ed671c55bc1244652cb49afef224c833c.zip
nginx-0.0.1-2002-12-16-00:08:04 import
Diffstat (limited to 'src/os/unix/ngx_time.c')
-rw-r--r--src/os/unix/ngx_time.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/unix/ngx_time.c b/src/os/unix/ngx_time.c
index 5dfcb63f2..26ef6462d 100644
--- 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)