Closed v-lopez closed 2 years ago
GitHub won't let me use the inline suggestion for this for some reason, but why don't we just let the string formatting take care of this?
data['timezone'] = '%s%+03d' % (
time.tzname[0], time.timezone / 60 / 60)
Makes sense, done.
Negative timezones would export a variable like
ENV TZ CET--1
which python time library interprets as 24h difference, which causes errors.