Skip to content

Commit f64ae78

Browse files
committed
fix upload timestamp
Signed-off-by: Sylvain Hellegouarch <[email protected]>
1 parent fbf6fc5 commit f64ae78

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Fixed
1111

1212
- fixed `chaosaws.s3.controls.upload` so it uploads the journal as a file
13+
- fixed `chaosaws.s3.controls.upload` so the timestamp is generated
1314

1415

1516
## [0.20.0][] - 2022-07-11

chaosaws/s3/controls/upload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def after_experiment_control(
6464

6565
suffix = ""
6666
if suffix_with_timestamp:
67-
ts = datetime.utcnow().replace(timezone=timezone.utc).isoformat()
67+
ts = datetime.utcnow().replace(tzinfo=timezone.utc).isoformat()
6868
suffix = f"-{ts}"
6969

7070
path = f"{dirpath}/journal{suffix}.{ext}"

0 commit comments

Comments
 (0)