Skip to content

Commit 8135225

Browse files
committed
use YYYYMMDD_HHMMSSUTC formatting for reprod dirnames
1 parent c4f8467 commit 8135225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eb_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def post_easyblock_hook_copy_easybuild_subdir(self, *args, **kwargs):
529529
"""
530530

531531
stack_reprod_dir = os.path.join(os.path.dirname(install_path()), STACK_REPROD_SUBDIR)
532-
now_utc_timestamp = datetime.datetime.now(datetime.UTC).isoformat('T', 'seconds').replace('+00:00', 'Z')
532+
now_utc_timestamp = datetime.datetime.now(datetime.UTC).strftime('%Y%m%d_%H%M%S%Z')
533533
app_easybuild_dir = os.path.join(self.installdir, config.log_path(ec=self.cfg))
534534
app_reprod_dir = os.path.join(stack_reprod_dir, self.install_subdir, now_utc_timestamp, 'easybuild')
535535
copy_dir(app_easybuild_dir, app_reprod_dir)

0 commit comments

Comments
 (0)