mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Fixing dateutil on broken dates.
This commit is contained in:
parent
a4267f423e
commit
bea0b1da51
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ def pre_process_story(entry):
|
|||
publish_date = datetime.datetime(*publish_date[:6])
|
||||
if not publish_date and entry.get('published'):
|
||||
try:
|
||||
publish_date = dateutil.parser.parse(entry.get('published'))
|
||||
publish_date = dateutil.parser.parse(entry.get('published')).replace(tzinfo=None)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue