rss: minor enhancements
This commit is contained in:
parent
eba2d26b31
commit
c289fbb872
5 changed files with 66 additions and 20 deletions
|
@ -21,6 +21,7 @@ _POLAR_DIR = Path('~').expanduser() / '.polar'
|
|||
logger = LazyLogger(__name__)
|
||||
|
||||
|
||||
# TODO use core.isoparse
|
||||
def parse_dt(s: str) -> datetime:
|
||||
return pytz.utc.localize(datetime.strptime(s, '%Y-%m-%dT%H:%M:%S.%fZ'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue