Commit 4d78bee8 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Fix time parsing error when seconds > 59

parent 9ce47dbf
......@@ -612,7 +612,7 @@ sub GetTicketAuxAux($$$$$$$$$)
"Illegal valid_until in rspec");
# Convert to a localtime.
my $when = timegm(strptime($expires));
my $when = str2time($expires);
if (!defined($when)) {
return GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
"Could not parse valid_until");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment