Skip to content
Snippets Groups Projects
Commit 70542aa6 authored by Megan Henning's avatar Megan Henning Committed by GitHub
Browse files

Merge pull request #547 from scitran/packfile-date-fix

Fix timestamp bug packfile upload
parents 8e7fb8e9 a1ad653a
No related branches found
No related tags found
No related merge requests found
......@@ -490,6 +490,8 @@ class PackfilePlacer(Placer):
insert_map['created'] = self.timestamp
insert_map.update(self.metadata['session'])
insert_map['subject'] = containerutil.add_id_to_subject(insert_map.get('subject'), self.p_id)
if 'timestamp' in insert_map:
insert_map['timestamp'] = dateutil.parser.parse(insert_map['timestamp'])
session = config.db['session' + 's'].find_one_and_update(
query, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment