]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
We should sent back the Last-Modified header in GMT as specified by RFC2616
authorWido den Hollander <wido@widodh.nl>
Fri, 23 Jul 2010 14:40:48 +0000 (16:40 +0200)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 27 Jul 2010 17:28:46 +0000 (10:28 -0700)
src/rgw/rgw_rest.cc

index 8bf59f781dbae275ec5c35865be25e8dab4c970b..713ffedaa4602c785ae5b89e9a3f09e4ff114706 100644 (file)
@@ -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;