Commit d0955715 authored by Leigh Stoller's avatar Leigh Stoller

Fix GM time conversion bug.

parent ec96e2b3
......@@ -223,7 +223,7 @@ foreach my $credential ( keys( %credentials ) ) {
if $expiry !~ $dateregexp;
fatal("invalid delegation (credential is expired)")
if (time() >= str2time($expiry));
if (time() > timegm(strptime($expiry)));
if( $node != $root_cred ) {
my $parent = $credentials{$credential}->{"parent_cred"};
......@@ -273,7 +273,7 @@ foreach my $credential ( keys( %credentials ) ) {
if $expiry gt $parent_expiry;
fatal("invalid delegation (parent credential is expired)")
if (time() >= str2time($parent_expiry));
if (time() > timegm(strptime($parent_expiry)));
}
}
......
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