Update pages.py

This commit is contained in:
Johannes
2023-02-04 21:50:22 +01:00
committed by GitHub
parent d4d69be627
commit 21d2a19c4e

View File

@@ -373,7 +373,7 @@ class LuiPagesGen(object):
global babel_spec
if babel_spec is not None:
dateformat = "E" if item.nameOverride is None else item.nameOverride
name = babel.dates.format_date(fdate, dateformat, locale=self._locale)
name = babel.dates.format_datetime(fdate, dateformat, locale=self._locale)
else:
dateformat = "%a" if item.nameOverride is None else item.nameOverride
name = fdate.strftime(dateformat)