Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
5f3c5bab
Commit
5f3c5bab
authored
Aug 28, 2017
by
Leigh B Stoller
Browse files
Another mysql 5.7 date fix.
parent
12446686
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
5f3c5bab
...
...
@@ -727,8 +727,20 @@ sub GetTicketAuxAux($$$$$$$$$$$)
# Mark the expires slot in the experiment, for admission control
# during the mapper run.
#
if ($slice_experiment->SetExpiration(defined($expires) ? $expires :
$slice->expires())) {
# Convert to a localtime.
#
if (defined($expires)) {
$expires = eval { timegm(strptime($expires)); };
if ($@ || !defined($expires)) {
$response = GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
"Could not parse expiration");
goto bad;
}
}
else {
$expires = $slice->expires();
}
if ($slice_experiment->SetExpiration($expires)) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"set experiment expiration");
print STDERR "Could not set experiment expiration\n";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment