Skip to content

Commit

Permalink
change notebook timestamp to GM time to normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Harrison committed Feb 25, 2013
1 parent b0bc23e commit 6f5c255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MGRAST/lib/resources2/notebook.pm
Expand Up @@ -221,7 +221,7 @@ sub clone_notebook {
name => $name || $node->{attributes}{name}.'_copy',
user => $self->user ? $self->user->login : 'public',
uuid => $uuid,
created => strftime("%Y-%m-%dT%H:%M:%S", localtime),
created => strftime("%Y-%m-%dT%H:%M:%S", gmtime),
permission => 'edit',
description => $node->{attributes}{description} || ''
};
Expand Down Expand Up @@ -287,7 +287,7 @@ sub upload_notebook {
name => $nb_obj->{metadata}{name} || 'Untitled',
user => $nb_obj->{metadata}{user} || $nb_user,
uuid => $nb_obj->{metadata}{uuid} || $self->uuidv4(),
created => strftime("%Y-%m-%dT%H:%M:%S", localtime),
created => strftime("%Y-%m-%dT%H:%M:%S", gmtime),
permission => $nb_obj->{metadata}{permission} || $nb_perm,
description => $nb_obj->{metadata}{description} || ''
};
Expand Down

0 comments on commit 6f5c255

Please sign in to comment.