diff --git a/bumblebee/modules/date.py b/bumblebee/modules/date.py new file mode 120000 index 0000000..5a370f9 --- /dev/null +++ b/bumblebee/modules/date.py @@ -0,0 +1 @@ +time.py \ No newline at end of file diff --git a/bumblebee/modules/time.py b/bumblebee/modules/time.py index 1ae6e44..9076a94 100644 --- a/bumblebee/modules/time.py +++ b/bumblebee/modules/time.py @@ -3,7 +3,11 @@ import bumblebee.module class Module(bumblebee.module.Module): def __init__(self, args): - self._fmt = args[0] if args else "%x %X" + module = self.__module__.split(".")[-1] + + default = "%x" if module == "date" else "%X" + self._fmt = args[0] if args else default + super(Module, self).__init__(args) def data(self):