File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,7 @@ def build_reitem_object(configuration, re_dict):
386
386
})
387
387
388
388
created_timestamp = re_dict ['CREATED_TIMESTAMP' ]
389
+ # Timestamp should always be set but default to epoch e.g. if None
389
390
if isinstance (created_timestamp , basestring ):
390
391
# NOTE: fromisoformat was only added in python 3.x
391
392
try :
@@ -395,6 +396,8 @@ def build_reitem_object(configuration, re_dict):
395
396
# Fall back to old fragile parser
396
397
created_timestamp = datetime .datetime .strptime (
397
398
created_timestamp , '%Y-%m-%d %H:%M:%S.%f' )
399
+ else :
400
+ created_timestamp = datetime .datetime .utcfromtimestamp (0 )
398
401
399
402
created_timetuple = created_timestamp .timetuple ()
400
403
created_asctime = time .asctime (created_timetuple )
You can’t perform that action at this time.
0 commit comments