main
Bob Mottram 2025-12-21 13:06:38 +00:00
parent e393c909b8
commit 6f5ebdcf98
1 changed files with 3 additions and 0 deletions

View File

@ -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 = \