"GMT" -> "UTC"
This commit is contained in:
parent
4826ac67f8
commit
352f6b26d3
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue