how many times can i typo "utc"

This commit is contained in:
jesopo 2019-11-03 12:50:47 +00:00
parent 352f6b26d3
commit 9de95d17e5

View file

@ -53,8 +53,8 @@ class Module(ModuleManager.BaseModule):
dt = datetime.datetime.now(tz=pytz.timezone(timezone)) dt = datetime.datetime.now(tz=pytz.timezone(timezone))
utc_offset = (dt.utcoffset().total_seconds()/60)/60 utc_offset = (dt.utcoffset().total_seconds()/60)/60
tz = "UTC" tz = "UTC"
if not utf_offset == 0.0: if not utc_offset == 0.0:
if urc_offset > 0: if utc_offset > 0:
tz += "+" tz += "+"
tz += "%g" % utc_offset tz += "%g" % utc_offset
human = utils.datetime_human(dt) human = utils.datetime_human(dt)