Mercurial > hg > nginx-mail
comparison src/os/unix/ngx_time.c @ 66:818201e5a553 NGINX_0_1_33
nginx 0.1.33
*) Bugfix: nginx could not be built with the --without-pcre parameter;
bug appeared in 0.1.29.
*) Bugfix: 3, 4, 7, and 8 the "proxy_set_header" directives in one
level cause the bus fault on start up.
*) Bugfix: the HTTP protocol was specified in the HTTPS redirects.
*) Bugfix: if the "rewrite" directive used the captures inside the "if"
directive, then the 500 error code was returned.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 23 May 2005 00:00:00 +0400 |
parents | b55cbf18157e |
children | 408f195b3482 |
comparison
equal
deleted
inserted
replaced
65:5d92e3f1fb4e | 66:818201e5a553 |
---|---|
12 { | 12 { |
13 #if (NGX_HAVE_LOCALTIME_R) | 13 #if (NGX_HAVE_LOCALTIME_R) |
14 time_t now; | 14 time_t now; |
15 | 15 |
16 now = ngx_time(); | 16 now = ngx_time(); |
17 localtime_r(&now, tm); | 17 (void) localtime_r(&now, tm); |
18 | 18 |
19 #else | 19 #else |
20 time_t now; | 20 time_t now; |
21 ngx_tm_t *t; | 21 ngx_tm_t *t; |
22 | 22 |
35 { | 35 { |
36 #if (NGX_HAVE_LOCALTIME_R) | 36 #if (NGX_HAVE_LOCALTIME_R) |
37 time_t now; | 37 time_t now; |
38 | 38 |
39 now = ngx_time(); | 39 now = ngx_time(); |
40 localtime_r(&now, tm); | 40 (void) localtime_r(&now, tm); |
41 | 41 |
42 #else | 42 #else |
43 time_t now; | 43 time_t now; |
44 struct tm *t; | 44 struct tm *t; |
45 | 45 |
55 { | 55 { |
56 #if (NGX_HAVE_LOCALTIME_R) | 56 #if (NGX_HAVE_LOCALTIME_R) |
57 time_t now; | 57 time_t now; |
58 | 58 |
59 now = ngx_time(); | 59 now = ngx_time(); |
60 gmtime_r(&now, tm); | 60 (void) gmtime_r(&now, tm); |
61 | 61 |
62 #else | 62 #else |
63 time_t now; | 63 time_t now; |
64 struct tm *t; | 64 struct tm *t; |
65 | 65 |