From ce02551b85f8e3ed41dcb570eac067ca4e3245d4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 23 Sep 2020 04:43:02 +0200 Subject: [PATCH] [skip travis] alternative approach to datetime --- scripts/update-version-workflow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/update-version-workflow.py b/scripts/update-version-workflow.py index a61aa640b..cebcbf1b4 100644 --- a/scripts/update-version-workflow.py +++ b/scripts/update-version-workflow.py @@ -18,7 +18,9 @@ old_rev = '' if len(_OLD_VERSION) > 1: old_rev = _OLD_VERSION[1] -ver = f'{datetime.today():%Y.%m.%d}' +now = datetime.now() +# ver = f'{datetime.today():%Y.%m.%d}' +ver = now.strftime("%Y.%m.%d") rev = '' if old_ver == ver: