diff options
-rwxr-xr-x | rss_types.py | 3 | ||||
-rwxr-xr-x | zdf.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/rss_types.py b/rss_types.py index 4217b29..b27cbc5 100755 --- a/rss_types.py +++ b/rss_types.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 from dataclasses import dataclass +from datetime import datetime @dataclass @@ -8,7 +9,7 @@ class RSSItem: title: str url: str content: str - date: str + date: datetime enclosures: list[str] guid: str @@ -70,7 +70,7 @@ def zdf(show_url): title=s_title, url=s_url, content=s_desc, - date=s_date, + date=s_date_parsed, guid=s_guid, enclosures=[], ) |