mirror of
https://github.com/novoid/guess-filename.py.git
synced 2026-02-16 13:24:15 +00:00
fixed but with month and leading zeros
This commit is contained in:
parent
d4a7f4142f
commit
f0593d3564
1 changed files with 4 additions and 1 deletions
|
|
@ -852,7 +852,10 @@ class GuessFilename(object):
|
|||
month = int(month_str)
|
||||
year = int(year_str)
|
||||
if month < 12:
|
||||
datestring = str(year) + '-' + str(month + 1) + '-01'
|
||||
if month < 9:
|
||||
datestring = str(year) + '-0' + str(month + 1) + '-01'
|
||||
else:
|
||||
datestring = str(year) + '-' + str(month + 1) + '-01'
|
||||
else:
|
||||
datestring = str(year + 1) + '-01-01'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue