diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-11-27 23:13:48 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2012-11-28 02:07:12 +0100 |
commit | ee1df64d6cc0c2b8684063e2ae33676fd50440a7 (patch) | |
tree | dd25c7088e7fc691a7dbddf5d7379af5dde32b96 /wizards | |
parent | b75e9576bfaf9f95532f2a9d6917cffbf37a57e0 (diff) |
pyagenda: fix date field
Change-Id: I7952deeae094ae6d7c44fe4351225434d70e5c52
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/agenda/AgendaTemplate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaTemplate.py b/wizards/com/sun/star/wizards/agenda/AgendaTemplate.py index 3dbcf63f752b..01db554616ff 100644 --- a/wizards/com/sun/star/wizards/agenda/AgendaTemplate.py +++ b/wizards/com/sun/star/wizards/agenda/AgendaTemplate.py @@ -294,7 +294,7 @@ class AgendaTemplate(TextDocument): self.initializeItemsSections() self.textSectionHandler = TextSectionHandler( self.xTextDocument, self.xTextDocument) - self.topics = Topics(self) + #self.topics = Topics(self) ''' locates the titles (name, location, date, time) @@ -400,9 +400,9 @@ class AgendaTemplate(TextDocument): if d is None or d == "": return "" date = int(d) - year = date / 10000 - month = (date % 10000) / 100 - day = date % 100 + year = int(date / 10000) + month = int((date % 10000) / 100) + day = int(date % 100) dateObject = dateTimeObject(year, month, day) return AgendaTemplate.dateUtils.format( AgendaTemplate.dateFormat, dateObject) |