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 84b887134..199f0734f 100644 --- a/pyinst.py +++ b/pyinst.py @@ -22,7 +22,9 @@ 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 eb3acb6c8..ea20a69e5 100644 --- a/pyinst32.py +++ b/pyinst32.py @@ -22,7 +22,9 @@ 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 28818e939..5d779717d 100644 --- a/scripts/update-version.py +++ b/scripts/update-version.py @@ -15,7 +15,9 @@ 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: