]> git.kaiwu.me - nginx.git/commitdiff
SSI %s timefmt has no timezone offset
authorIgor Sysoev <igor@sysoev.ru>
Fri, 19 Feb 2010 13:53:11 +0000 (13:53 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 19 Feb 2010 13:53:11 +0000 (13:53 +0000)
src/http/modules/ngx_http_ssi_filter_module.c

index d95b297baa1282de3196ef372d63f134e56e688a..6dcce3f3169357589e7d49593ba58ffecfc57dc7 100644 (file)
@@ -2615,8 +2615,7 @@ ngx_http_ssi_date_gmt_local_variable(ngx_http_request_t *r,
             return NGX_ERROR;
         }
 
-        v->len = ngx_sprintf(v->data, "%T", tp->sec + (gmt ? 0 : tp->gmtoff))
-                 - v->data;
+        v->len = ngx_sprintf(v->data, "%T", tp->sec) - v->data;
 
         return NGX_OK;
     }