]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix date/time format string
authorWido den Hollander <wido@widodh.nl>
Fri, 23 Jul 2010 22:00:13 +0000 (15:00 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 27 Jul 2010 17:28:46 +0000 (10:28 -0700)
src/rgw/rgw_common.cc

index faee09141f64407cb7a89e1ec38000811bac7b6c..bbf6540c14346a0fe08b729bb1020fbb745b078e 100644 (file)
@@ -7,7 +7,7 @@ int parse_time(const char *time_str, time_t *time)
 {
   struct tm tm;
   memset(&tm, 0, sizeof(struct tm));
-  if (!strptime(time_str, "%FT%T%z", &tm))
+  if (!strptime(time_str, "%a, %d %b %Y %H:%M:%S GMT", &tm))
     return -EINVAL;
 
   *time = mktime(&tm);