Commit 15e30c16 authored by shadMod's avatar shadMod 💬

replaced 'ISO8859-1' with 'UTF-8'

added Exception with TODO log
parent 9074d4e3
Pipeline #357 passed with stage
in 0 seconds
......@@ -71,8 +71,9 @@ class GetNews:
try:
# check and set with it_IT language
if 'it_it' in locale.locale_alias:
locale.setlocale(locale.LC_TIME, "it_IT.ISO8859-1")
except:
locale.setlocale(locale.LC_TIME, "it_IT.UTF-8")
except Exception as ex:
# TODO: add logger.warning(ex)
pass
# format datetime: 01 Novembre 2023 - 00:00
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment