Commit 36d11bf7 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Bug fix to RenewSlice(); use localtime instead of gmtime.

parent ad0c8f7a
......@@ -1012,13 +1012,16 @@ sub RenewSlice($)
$message = "Expiration is in the past";
goto bad;
}
if ($when < timegm( strptime( $slice->expires() ) ) ) {
if ($when < timelocal(strptime($slice->expires()))) {
$message = "Cannot shorten slice lifetime";
goto bad;
}
if ($slice->Lock() != 0) {
return GeniResponse->BusyResponse("slice");
}
print STDERR "Changing expiration for $slice from " .
$slice->expires() . " to $expires\n";
if ($slice->SetExpiration($when) != 0) {
$message = "Could not set expiration time";
$slice->UnLock();
......
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