"GMT" -> "UTC"

This commit is contained in:
jesopo 2019-11-03 12:48:50 +00:00
parent 4826ac67f8
commit 352f6b26d3

View file

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