Mercurial > hg > nginx
changeset 1062:bc9751affada
style and comment fix
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 19 Jan 2007 11:35:26 +0000 |
parents | 9aca452fe12a |
children | e2a6ecc5a3ae |
files | src/http/ngx_http_parse_time.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 */ 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 /* * 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;