diff options
| author | 2019-11-03 12:48:50 +0000 | |
|---|---|---|
| committer | 2019-11-03 12:48:50 +0000 | |
| commit | 352f6b26d3c4695fe3125f9ff59d043d8ac57f53 (patch) | |
| tree | 75391025d178baf221278076326ecb47aba57047 /modules/user_time.py | |
| parent | show "published" for "updated" releases - seems theres a bug that prevents th... (diff) | |
| signature | ||
"GMT" -> "UTC"
Diffstat (limited to 'modules/user_time.py')
| -rw-r--r-- | modules/user_time.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/user_time.py b/modules/user_time.py index 043f2d3f..7030ee4a 100644 --- a/modules/user_time.py +++ b/modules/user_time.py @@ -51,12 +51,12 @@ class Module(ModuleManager.BaseModule): if not timezone == None: dt = datetime.datetime.now(tz=pytz.timezone(timezone)) - gmt_offset = (dt.utcoffset().total_seconds()/60)/60 - tz = "GMT" - if not gmt_offset == 0.0: - if gmt_offset > 0: + utc_offset = (dt.utcoffset().total_seconds()/60)/60 + tz = "UTC" + if not utf_offset == 0.0: + if urc_offset > 0: tz += "+" - tz += "%g" % gmt_offset + tz += "%g" % utc_offset human = utils.datetime_human(dt) out = None |
