diff --git a/py3status/modules/clock.py b/py3status/modules/clock.py index 3bdea7f805..c994d9e0cc 100644 --- a/py3status/modules/clock.py +++ b/py3status/modules/clock.py @@ -130,9 +130,11 @@ def post_config_hook(self): self.cycle = 0 # find any declared timezones eg {Europe/London} self._items = {} - matches = re.findall(r'\{([^}]*)\}', ''.join(self.format)) - for match in matches: - self._items[match] = self._get_timezone(match) + fmts = set() + for fmt in self.format: + fmts.update(self.py3.get_placeholders_list(fmt)) + for fmt in fmts: + self._items[fmt] = self._get_timezone(fmt) self.multiple_tz = len(self._items) > 1