Hi, Find attached a small patch that correct the time display for languages that do not support %p extension (ie. am/pm information). In this case, the clock should be set to 24 hours.
For example, with the current version, "Fri 10.20 pm" string is "ven 10:20" in french. Once the patch applied, we have "ven 22:20". David
--- __init__.py.orig 2003-10-27 15:11:12.000000000 -0500 +++ __init__.py 2003-11-14 22:50:40.000000000 -0500 @@ -137,8 +137,13 @@ Note: The clock will always be displayed on the right side of the idlebar. """ - def __init__(self, format='%a %I:%M %P'): + def __init__(self, format=''): IdleBarPlugin.__init__(self) + if format == '': # No overiding of the default value + if time.strftime('%P') =='': + format ='%a %H:%M' + else: + format ='%a %I:%M %P' self.timeformat = format def draw(self, (type, object), x, osd):