From 6f49b8f0416b0d7be1327e1c58f37b1c50ee42c8 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 6 Sep 2006 14:40:54 +0000 Subject: [PATCH] Monotone-Parent: bf42b4068082eb38268bdf4f7034597312c2bb7c Monotone-Revision: 30ddfff1991c7e39d67fc5f3c46b308d273ee14a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-06T14:40:54 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ UI/SOGoUI/UIxComponent.m | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2904bdb48..ea03e541b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-09-06 Wolfgang Sourdeau + + * UI/SOGoUI/UIxComponent.m ([UIxComponent -selectedDate]): make + sure the numbers in dateString are formatted so as to take 4 chars + for the year and 2 for the day and the month, otherwise + NSCalendarDate will return a nil date. + 2006-09-05 Wolfgang Sourdeau * UI/SOGoUI/UIxComponent.m ([UIxComponent -selectedDate]): add the diff --git a/UI/SOGoUI/UIxComponent.m b/UI/SOGoUI/UIxComponent.m index 1bc1e386a..87d8b4b58 100644 --- a/UI/SOGoUI/UIxComponent.m +++ b/UI/SOGoUI/UIxComponent.m @@ -384,7 +384,7 @@ static BOOL uixDebugEnabled = NO; else { cdate = [NSCalendarDate calendarDate]; - dateString = [NSString stringWithFormat: @"%d%d%d %@", + dateString = [NSString stringWithFormat: @"%.4d%.2d%.2d %@", [cdate yearOfCommonEra], [cdate monthOfYear], [cdate dayOfMonth],