mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[skip travis] alternative approach to datetime
This commit is contained in:
parent
14a9299f50
commit
ce02551b85
1 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,9 @@
|
||||||
if len(_OLD_VERSION) > 1:
|
if len(_OLD_VERSION) > 1:
|
||||||
old_rev = _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 = ''
|
rev = ''
|
||||||
|
|
||||||
if old_ver == ver:
|
if old_ver == ver:
|
||||||
|
|
Loading…
Reference in a new issue