forked from minhngoc25a/yt-dlc
[skip travis] alternative approach to datetime
This commit is contained in:
parent
14a9299f50
commit
ce02551b85
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue