From: Yehuda Sadeh Date: Wed, 27 Jun 2012 00:28:51 +0000 (-0700) Subject: rgw-admin: use correct modifier with strptime X-Git-Tag: v0.49~75 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c5d19b6df0bcb238e5e68732b4d252b06f2d9e56;p=ceph.git rgw-admin: use correct modifier with strptime Bug #2658: used %I (12h) instead of %H (24h) Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index b3b4485d7040..8d44c10cfce6 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -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;