[modules/time] bugfix: Use module instance format
This commit is contained in:
parent
2d873387ea
commit
c821deec1c
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue