Monotone-Parent: 69ec7c5e5b614344af143a54ceb32686d3daa756

Monotone-Revision: bf42b4068082eb38268bdf4f7034597312c2bb7c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-05T21:53:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-05 21:53:47 +00:00
parent 3167b912d6
commit 3984092f08
2 changed files with 15 additions and 8 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
* UI/SOGoUI/UIxComponent.m ([UIxComponent -selectedDate]): add the
user's timezone abbreviation to the date string passed as parameter to
NSCalendarDate to generate an accurate date instance.
NSCalendarDate to generate an accurate date instance. Do the same
when no date is specified and today is chosen.
* UI/WebServerResources/UIxAppointmentEditor.js: convert the
form's time values to integers before comparing them.
+13 -7
View File
@@ -379,14 +379,20 @@ static BOOL uixDebugEnabled = NO;
{
s = [self queryParameterForKey: @"day"];
if ([s length] > 0)
{
dateString = [s stringByAppendingFormat: @" %@",
[[self viewTimeZone] abbreviation]];
cdate = [NSCalendarDate dateWithString: dateString
calendarFormat: @"%Y%m%d %Z"];
}
dateString = [s stringByAppendingFormat: @" %@",
[[self viewTimeZone] abbreviation]];
else
cdate = [NSCalendarDate date];
{
cdate = [NSCalendarDate calendarDate];
dateString = [NSString stringWithFormat: @"%d%d%d %@",
[cdate yearOfCommonEra],
[cdate monthOfYear],
[cdate dayOfMonth],
[[self viewTimeZone] abbreviation]];
}
cdate = [NSCalendarDate dateWithString: dateString
calendarFormat: @"%Y%m%d %Z"];
s = [self queryParameterForKey: @"hm"];
if ([s length] == 4)
{