From: Wido den Hollander Date: Fri, 23 Jul 2010 14:40:48 +0000 (+0200) Subject: We should sent back the Last-Modified header in GMT as specified by RFC2616 X-Git-Tag: v0.21~39 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=017588edb8ffb0ae624ab628fc7f73a22ded9593;p=ceph.git We should sent back the Last-Modified header in GMT as specified by RFC2616 --- diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 8bf59f781dbae..713ffedaa4602 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -96,7 +96,7 @@ static void dump_etag(struct req_state *s, const char *etag) static void dump_last_modified(struct req_state *s, time_t t) { char timestr[TIME_BUF_SIZE]; - struct tm *tmp = localtime(&t); + struct tm *tmp = gmtime(&t); if (tmp == NULL) return;