rss: minor enhancements

This commit is contained in:
Dima Gerasimov 2020-05-13 21:29:16 +01:00
parent eba2d26b31
commit c289fbb872
5 changed files with 66 additions and 20 deletions

View file

@ -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'))