File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
# --- BEGIN_HEADER ---
5
5
#
6
6
# refunctions - runtime environment functions
7
- # Copyright (C) 2003-2021 The MiG Project lead by Brian Vinter
7
+ # Copyright (C) 2003-2024 The MiG Project lead by Brian Vinter
8
8
#
9
9
# This file is part of MiG.
10
10
#
@@ -383,6 +383,11 @@ def build_reitem_object(configuration, re_dict):
383
383
'example' : environment_item ['example' ],
384
384
'description' : environment_item ['description' ],
385
385
})
386
+ created_timestamp = re_dict ['CREATED_TIMESTAMP' ]
387
+ # Timestamp should always be set but default to epoch e.g. if None
388
+ if not created_timestamp :
389
+ created_timestamp = datetime .datetime .utcfromtimestamp (0 )
390
+ created_timetuple = created_timestamp .timetuple ()
386
391
created_timetuple = re_dict ['CREATED_TIMESTAMP' ].timetuple ()
387
392
created_asctime = time .asctime (created_timetuple )
388
393
created_epoch = time .mktime (created_timetuple )
You can’t perform that action at this time.
0 commit comments