mirror of https://gitlab.com/bashrc2/epicyon
Comment
parent
e393c909b8
commit
6f5ebdcf98
|
|
@ -72,7 +72,10 @@ def date_from_string_format(date_str: str, formats: []):
|
|||
"%a, %d %b %Y %H:%M:%S %z",
|
||||
"%Y-%m-%dT%H:%M:%S%z")
|
||||
dtime = None
|
||||
|
||||
# Remove any traling spaces
|
||||
date_str = date_str.strip()
|
||||
|
||||
for date_format in formats:
|
||||
try:
|
||||
dtime = \
|
||||
|
|
|
|||
Loading…
Reference in New Issue