From: Thomas Zimmermann <[email protected]>
---
shr_settings_modules/shr_clock.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/shr_settings_modules/shr_clock.py
b/shr_settings_modules/shr_clock.py
index 583ae82..fbed7e3 100644
--- a/shr_settings_modules/shr_clock.py
+++ b/shr_settings_modules/shr_clock.py
@@ -31,7 +31,7 @@ class Clock(module.AbstractModule):
def clockset(self, obj, *args, **kargs):
if self.editable:
now = datetime.datetime.now()
- os.system("date
"+str(now.month).zfill(2)+str(now.day).zfill(2)+str(self.cl.time_get()[0]).zfill(2)+str(self.cl.time_get()[1]).zfill(2)+str(now.year)+"."+str(self.cl.time_get()[2]).zfill(2))
+ os.system("date
"+str(now.year)+str(now.month).zfill(2)+str(now.day).zfill(2)+str(self.cl.time_get()[0]).zfill(2)+str(self.cl.time_get()[1]).zfill(2)+"."+str(self.cl.time_get()[2]).zfill(2))
self.cl.edit_set(False)
obj.label_set(_("Set time"))
self.editable = False
--
1.7.0.3
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel