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.
This commit is contained in:
Tomáš Hnyk 2022-06-17 23:34:26 +02:00 committed by GitHub
parent 19e50d4fed
commit dc06bf67ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1462,7 +1462,7 @@ class BasicNewsRecipe(Recipe):
dir = self.output_dir dir = self.output_dir
title = self.short_title() title = self.short_title()
if self.output_profile.periodical_date_in_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 = MetaInformation(title, [__appname__])
mi.publisher = __appname__ mi.publisher = __appname__
mi.author_sort = __appname__ mi.author_sort = __appname__