diff --git a/tabellio/agenda/event.py b/tabellio/agenda/event.py index 0ac66ee..ce73b85 100644 --- a/tabellio/agenda/event.py +++ b/tabellio/agenda/event.py @@ -39,7 +39,10 @@ class BaseEvent(Item): def longdatetime(self): # unfortunately this forces the locale formatter = locales.getLocale('fr').dates.getFormatter('dateTime', 'medium') - formatter.setPattern(u'EEEE d MMMM yyyy à HH:mm') + if self.start.hour == 0 and self.start.minute == 0: + formatter.setPattern(u'EEEE d MMMM yyyy') + else: + formatter.setPattern(u'EEEE d MMMM yyyy à HH:mm') return formatter.format(self.start) longdatetime = property(longdatetime)