Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 3454:04966b3122ab
SSI %s timefmt has no timezone offset
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 19 Feb 2010 13:53:11 +0000 |
parents | 7b68809fe8b1 |
children | 6a5dc3803825 |
comparison
equal
deleted
inserted
replaced
3453:7b68809fe8b1 | 3454:04966b3122ab |
---|---|
2613 v->data = ngx_pnalloc(r->pool, NGX_TIME_T_LEN); | 2613 v->data = ngx_pnalloc(r->pool, NGX_TIME_T_LEN); |
2614 if (v->data == NULL) { | 2614 if (v->data == NULL) { |
2615 return NGX_ERROR; | 2615 return NGX_ERROR; |
2616 } | 2616 } |
2617 | 2617 |
2618 v->len = ngx_sprintf(v->data, "%T", tp->sec + (gmt ? 0 : tp->gmtoff)) | 2618 v->len = ngx_sprintf(v->data, "%T", tp->sec) - v->data; |
2619 - v->data; | |
2620 | 2619 |
2621 return NGX_OK; | 2620 return NGX_OK; |
2622 } | 2621 } |
2623 | 2622 |
2624 if (gmt) { | 2623 if (gmt) { |