From b95f0de6d7859c33d7676e6c2b9ab42d3fdd3a9b Mon Sep 17 00:00:00 2001 From: Cyril NOVEL <5690282+cnovel@users.noreply.github.com> Date: Tue, 28 Jul 2026 17:35:47 +0200 Subject: [PATCH] One liner --- gen_feed.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gen_feed.py b/gen_feed.py index 0af08cf..73c3962 100644 --- a/gen_feed.py +++ b/gen_feed.py @@ -29,8 +29,7 @@ class Article: publish_date_time = soup.find("meta", property="article:published_time")[ "content" ] - self.date = datetime.datetime.strptime(publish_date_time, "%Y-%m-%dT%H:%M:%SZ") - self.date = self.date.replace(tzinfo=ZoneInfo("UTC")) + self.date = datetime.datetime.strptime(publish_date_time, "%Y-%m-%dT%H:%M:%SZ").replace(tzinfo=ZoneInfo("UTC")) # Handle text text = []