From dc06bf67ed9a50a1aafbd0c09d28c213ad3648f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hnyk?= Date: Fri, 17 Jun 2022 23:34:26 +0200 Subject: [PATCH] Use proper date in recipes As discussed here: #1642 (comment), this makes the title in a recipe use the date when a given publication was issued (if set by a recipe) instead of current time. --- src/calibre/web/feeds/news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/web/feeds/news.py b/src/calibre/web/feeds/news.py index 8bc76166f1..fbc5d4ef9b 100644 --- a/src/calibre/web/feeds/news.py +++ b/src/calibre/web/feeds/news.py @@ -1462,7 +1462,7 @@ class BasicNewsRecipe(Recipe): dir = self.output_dir title = self.short_title() if self.output_profile.periodical_date_in_title: - title += strftime(self.timefmt) + title += strftime(self.timefmt,self.publication_date()) mi = MetaInformation(title, [__appname__]) mi.publisher = __appname__ mi.author_sort = __appname__