feat: better timestamps
This commit is contained in:
@@ -87,6 +87,7 @@ class ArticleTranslation:
|
||||
"article_slug": self.article_overview.slug,
|
||||
"article_title": self.title,
|
||||
"article_datetime": self.article_overview.article_written.strftime(config.formatting.datetime_format),
|
||||
"article_datetime_iso": self.article_overview.article_written.isoformat(),
|
||||
"article_language_name": self.language_name,
|
||||
"article_language_code": self.language_code,
|
||||
"article_language_flag": self.language_flag,
|
||||
@@ -178,6 +179,7 @@ class ArticleOverview:
|
||||
"article_title": self.slug,
|
||||
"article_slug": self.slug,
|
||||
"article_datetime": self.article_written.strftime(config.formatting.datetime_format),
|
||||
"article_datetime_iso": self.article_written.isoformat(),
|
||||
"article_overview_url": self.url,
|
||||
"article_overview_cards": self.overview_cards,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user