summaryrefslogtreecommitdiffstats
path: root/devscripts/update-version.py
diff options
context:
space:
mode:
Diffstat (limited to 'devscripts/update-version.py')
-rw-r--r--devscripts/update-version.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/devscripts/update-version.py b/devscripts/update-version.py
index da54a6a..07a0717 100644
--- a/devscripts/update-version.py
+++ b/devscripts/update-version.py
@@ -9,15 +9,15 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import argparse
import contextlib
+import datetime as dt
import sys
-from datetime import datetime, timezone
from devscripts.utils import read_version, run_process, write_file
def get_new_version(version, revision):
if not version:
- version = datetime.now(timezone.utc).strftime('%Y.%m.%d')
+ version = dt.datetime.now(dt.timezone.utc).strftime('%Y.%m.%d')
if revision:
assert revision.isdecimal(), 'Revision must be a number'