Update pages.py

This commit is contained in:
joBr99
2023-01-24 12:06:01 +01:00
committed by GitHub
parent bfddbb782f
commit 005ee04e6d

View File

@@ -351,6 +351,7 @@ class LuiPagesGen(object):
if type(item.stype) == int and len(entity.attributes.forecast) >= item.stype:
fdate = dp.parse(entity.attributes.forecast[item.stype]['datetime']).astimezone()
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)
else: