Skip to content

Commit

Permalink
[utils] Add one more template to unified_strdate
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Apr 4, 2015
1 parent d5c418f commit 79c21ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions youtube_dl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,15 @@ def unified_strdate(date_str, day_first=True):
]
if day_first:
format_expressions.extend([
'%d-%m-%Y',
'%d.%m.%Y',
'%d/%m/%Y',
'%d/%m/%y',
'%d/%m/%Y %H:%M:%S',
])
else:
format_expressions.extend([
'%m-%d-%Y',
'%m.%d.%Y',
'%m/%d/%Y',
'%m/%d/%y',
Expand Down

0 comments on commit 79c21ab

Please sign in to comment.