From 1f6cf75488dd786d5c6b38b324eceddb69fc1a5b Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 23 Sep 2020 05:19:38 +0200 Subject: [PATCH] datetime updated. --- pyinst.py | 4 +++- pyinst32.py | 4 +++- scripts/update-version.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pyinst.py b/pyinst.py index 84b8871344..199f0734fd 100644 --- a/pyinst.py +++ b/pyinst.py @@ -22,7 +22,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: diff --git a/pyinst32.py b/pyinst32.py index eb3acb6c8e..ea20a69e5b 100644 --- a/pyinst32.py +++ b/pyinst32.py @@ -22,7 +22,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: diff --git a/scripts/update-version.py b/scripts/update-version.py index 28818e9390..5d779717df 100644 --- a/scripts/update-version.py +++ b/scripts/update-version.py @@ -15,7 +15,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: