diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-12-08 20:48:12 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-12-08 20:48:12 +0000 |
commit | 5f80078c675bc344d12a6a64d97ecafb64de224b (patch) | |
tree | e4ff5330121ef71ffe558ccaa9210218802ff537 /src/core/ngx_times.c | |
parent | 62260f2a158e27e5f6b1689e10dc25ea3c617473 (diff) | |
download | nginx-5f80078c675bc344d12a6a64d97ecafb64de224b.tar.gz nginx-5f80078c675bc344d12a6a64d97ecafb64de224b.zip |
nginx-0.0.1-2003-12-08-23:48:12 import
Diffstat (limited to 'src/core/ngx_times.c')
-rw-r--r-- | src/core/ngx_times.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c index a1ffdceb5..bc0cb1684 100644 --- a/src/core/ngx_times.c +++ b/src/core/ngx_times.c @@ -116,11 +116,11 @@ void ngx_gmtime(time_t t, ngx_tm_t *tp) t %= 86400; hour = t / 3600; t %= 3600; - min = t / 60; + min = t / 60; sec = t % 60; /* the algorithm based on Gauss's formula */ - + days = days - (31 + 28) + 719527; year = days * 400 / (365 * 400 + 100 - 4 + 1); |