mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 14:25:32 +00:00
Monotone-Parent: 0cead9c9acf2f6167ebb5f33124979426871bdf9
Monotone-Revision: a9d4c92fe142a3db2b26db48a0763e64cb3adc1d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-03T03:17:55 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2007-11-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalDateHolder.m ([iCalDateHolder -awakeAfterUsingSaxDecoder:]):
|
||||
make use of cStringUsingEncoding: instead of getString:length: to
|
||||
retrieve the buffer content to work-around a bug in gnustep-base.
|
||||
|
||||
2007-11-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* CardGroup.m ([CardGroup +parseFromSource:source]): make sure the
|
||||
|
||||
@@ -130,14 +130,17 @@ static NSTimeZone *gmt = nil;
|
||||
if ([s rangeOfString:@"T"].length == 0 && [s length] == 8) {
|
||||
/* hm, maybe a date without a time? like an allday event! */
|
||||
int year, month, day;
|
||||
char buf[16];
|
||||
[s getCString:&(buf[0])];
|
||||
|
||||
buf[9] = '\0';
|
||||
day = atoi(&(buf[6])); buf[6] = '\0';
|
||||
month = atoi(&(buf[4])); buf[4] = '\0';
|
||||
year = atoi(&(buf[0]));
|
||||
char *buf;
|
||||
|
||||
buf = strdup([s cStringUsingEncoding: NSASCIIStringEncoding]);
|
||||
|
||||
day = atoi(buf + 6);
|
||||
buf[6] = '\0';
|
||||
month = atoi(buf + 4);
|
||||
buf[4] = '\0';
|
||||
year = atoi(buf);
|
||||
free (buf);
|
||||
|
||||
date = [NSCalendarDate dateWithYear:year month:month day:day
|
||||
hour:0 minute:0 second:0
|
||||
timeZone:tz];
|
||||
|
||||
Reference in New Issue
Block a user