]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-admin: use correct modifier with strptime
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 27 Jun 2012 00:28:51 +0000 (17:28 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 27 Jun 2012 20:48:15 +0000 (13:48 -0700)
Bug #2658: used %I (12h) instead of %H (24h)

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_admin.cc

index b3b4485d704049ba5c2852bcf5cc1d8f6745424d..8d44c10cfce68b3ee0842323df3b4c7135af9eae 100644 (file)
@@ -526,7 +526,7 @@ static void parse_date(string& date, uint64_t *epoch, string *out_date = NULL, s
   if (p) {
     if (*p == ' ') {
       p++;
-      strptime(p, " %I:%M:%S", &tm);
+      strptime(p, " %H:%M:%S", &tm);
     }
   } else {
     return;