Skip to content

Commit f628483

Browse files
committed
Make compatible with older Python version on Ubuntu
1 parent 48ff9f3 commit f628483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate_branch_output.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
branchname = sys.argv[1]
55
commit = sys.argv[2]
6-
date = datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%dT%H:%M:%S%z")
6+
date = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%S%z")
77

88
replacements = {
99
'BRANCH': branchname,

0 commit comments

Comments
 (0)