summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrss_types.py3
-rwxr-xr-xzdf.py2
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
diff --git a/zdf.py b/zdf.py
index b81278d..40a30d6 100755
--- a/zdf.py
+++ b/zdf.py
@@ -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=[],
)