[modules/time] bugfix: Use module instance format

This commit is contained in:
Tobias Witek 2016-11-05 14:43:03 +01:00
parent 2d873387ea
commit c821deec1c

View file

@ -28,7 +28,7 @@ class Module(bumblebee.module.Module):
if module == "time": if module == "time":
default = "%X" default = "%X"
self._fmt = config.parameter("format", default) self._fmt = self._config.parameter("format", default)
def widgets(self): def widgets(self):
return bumblebee.output.Widget(self, datetime.datetime.now().strftime(self._fmt)) return bumblebee.output.Widget(self, datetime.datetime.now().strftime(self._fmt))