mirror of https://gitlab.com/bashrc2/epicyon
US time zones
parent
181455ff8a
commit
619663a3c8
10
newswire.py
10
newswire.py
|
@ -190,10 +190,16 @@ def parseFeedDate(pubDate: str) -> str:
|
|||
This tries a number of formats to see which work
|
||||
"""
|
||||
formats = ("%a, %d %b %Y %H:%M:%S %z",
|
||||
"%a, %d %b %Y %H:%M:%S EST",
|
||||
"%a, %d %b %Y %H:%M:%S UT",
|
||||
"%a, %d %b %Y %H:%M:%S Z",
|
||||
"%a, %d %b %Y %H:%M:%S GMT",
|
||||
"%a, %d %b %Y %H:%M:%S EST",
|
||||
"%a, %d %b %Y %H:%M:%S PST",
|
||||
"%a, %d %b %Y %H:%M:%S AST",
|
||||
"%a, %d %b %Y %H:%M:%S CST",
|
||||
"%a, %d %b %Y %H:%M:%S MST",
|
||||
"%a, %d %b %Y %H:%M:%S AKST",
|
||||
"%a, %d %b %Y %H:%M:%S HST",
|
||||
"%a, %d %b %Y %H:%M:%S UT",
|
||||
"%Y-%m-%dT%H:%M:%SZ",
|
||||
"%Y-%m-%dT%H:%M:%S%z")
|
||||
publishedDate = None
|
||||
|
|
Loading…
Reference in New Issue