summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUltrabug <ultrabug@ultrabug.net>2015-01-14 22:27:18 +0100
committerUltrabug <ultrabug@ultrabug.net>2015-01-14 22:27:18 +0100
commita18cacf682aa7f96e3402da0a245e2477d08958d (patch)
treedf6c8e6da0981901a68e8f37746347d023109e84
parenteca7a8dba9b1d3d8b90fffb014ea19d316b2a524 (diff)
parent8a9aae45df91cf83cb7b9748ce267f27c964e2f1 (diff)
Merge pull request #55 from ZeiP/time_fix
Support time/tztime modules instances thx to @ZeiP
-rwxr-xr-xpy3status/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py
index cfc467f..f1fcbda 100755
--- a/py3status/__init__.py
+++ b/py3status/__init__.py
@@ -260,7 +260,7 @@ class I3status(Thread):
on_c[section_name][button] = value
# override time format
- if section_name in ['time', 'tztime'] and key == 'format':
+ if section_name.split(' ')[0] in ['time', 'tztime'] and key == 'format':
self.time_format = value
if line.endswith('}'):