rgw-admin: use correct modifier with strptime

Bug #2658: used %I (12h) instead of %H (24h)

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2012-06-26 17:28:51 -07:00
parent da251fe885
commit 35b9ec881a

View 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;