aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_parse_time.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-01-19 11:35:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-01-19 11:35:26 +0000
commit66f76d2f72dcd569607388adf20d2b2a3fbc679b (patch)
tree8de00b7b20221153cfeb6127e65dec0efeead837 /src/http/ngx_http_parse_time.c
parent8d6de94f5bf9e0c7b0362d7736053e8f3846b6c2 (diff)
downloadnginx-66f76d2f72dcd569607388adf20d2b2a3fbc679b.tar.gz
nginx-66f76d2f72dcd569607388adf20d2b2a3fbc679b.zip
style and comment fix
Diffstat (limited to 'src/http/ngx_http_parse_time.c')
-rw-r--r--src/http/ngx_http_parse_time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ngx_http_parse_time.c b/src/http/ngx_http_parse_time.c
index 8489a2e0f..29611f486 100644
--- a/src/http/ngx_http_parse_time.c
+++ b/src/http/ngx_http_parse_time.c
@@ -243,8 +243,8 @@ time_t ngx_http_parse_time(u_char *value, size_t len)
*/
if (--month <= 0) {
- month += 12;
- year -= 1;
+ month += 12;
+ year -= 1;
}
/* Gauss's formula for Grigorian days from 1 March 1 BC */
@@ -255,7 +255,7 @@ time_t ngx_http_parse_time(u_char *value, size_t len)
/*
* 719527 days were between March 1, 1 BC and March 1, 1970,
- * 31 and 28 days in January and February 1970
+ * 31 and 28 days were in January and February 1970
*/
- 719527 + 31 + 28) * 86400 + hour * 3600 + min * 60 + sec;