mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: c7fdfee7f222580acc0dcab2c03bab46e8f5f301
Monotone-Revision: 98210b359e6e3fe57ef302cfac263161a8f25967 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-13T02:34:29 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
2007-06-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalDateTime.m ([iCalDateTime
|
||||
-_setDateTime:dateTimeforAllDayEntity:forAllDayEntity]): take the
|
||||
forAllDayEntity parameter into account when the date entity has a
|
||||
timezone.
|
||||
|
||||
* iCalTimeZone.m ([iCalTimeZone -dateStringForDate:date]): new
|
||||
method that returns dates formatted for all day events.
|
||||
|
||||
2007-06-07 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalDateTime.m ([iCalDateTime
|
||||
|
||||
@@ -101,7 +101,12 @@
|
||||
{
|
||||
tz = [self timeZone];
|
||||
if (tz)
|
||||
timeString = [tz dateTimeStringForDate: dateTime];
|
||||
{
|
||||
if (forAllDayEntity)
|
||||
timeString = [tz dateStringForDate: dateTime];
|
||||
else
|
||||
timeString = [tz dateTimeStringForDate: dateTime];
|
||||
}
|
||||
else
|
||||
{
|
||||
utcTZ = [NSTimeZone timeZoneWithName: @"GMT"];
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
- (NSString *) tzId;
|
||||
- (NSString *) dateTimeStringForDate: (NSCalendarDate *) date;
|
||||
- (NSString *) dateStringForDate: (NSCalendarDate *) date;
|
||||
- (NSCalendarDate *) dateForDateTimeString: (NSString *) string;
|
||||
|
||||
@end
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
return period;
|
||||
}
|
||||
|
||||
- (NSString *) dateTimeStringForDate: (NSCalendarDate *) date
|
||||
- (NSCalendarDate *) _computedDateTimeForDate: (NSCalendarDate *) date
|
||||
{
|
||||
NSCalendarDate *tmpDate;
|
||||
NSTimeZone *utc;
|
||||
@@ -109,12 +109,22 @@
|
||||
tmpDate = [date copy];
|
||||
[tmpDate autorelease];
|
||||
[tmpDate setTimeZone: utc];
|
||||
tmpDate
|
||||
= [tmpDate addYear: 0 month: 0 day: 0
|
||||
hour: 0 minute: 0
|
||||
second: [[self periodForDate: date] secondsOffsetFromGMT]];
|
||||
|
||||
return [tmpDate iCalFormattedDateTimeString];
|
||||
return [tmpDate addYear: 0 month: 0 day: 0
|
||||
hour: 0 minute: 0
|
||||
second: [[self periodForDate: date] secondsOffsetFromGMT]];
|
||||
}
|
||||
|
||||
- (NSString *) dateTimeStringForDate: (NSCalendarDate *) date
|
||||
{
|
||||
return [[self _computedDateTimeForDate: date]
|
||||
iCalFormattedDateTimeString];
|
||||
}
|
||||
|
||||
- (NSString *) dateStringForDate: (NSCalendarDate *) date
|
||||
{
|
||||
return [[self _computedDateTimeForDate: date]
|
||||
iCalFormattedDateString];
|
||||
}
|
||||
|
||||
- (NSCalendarDate *) dateForDateTimeString: (NSString *) string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// $Id: UIxCalView.h 1045 2007-04-11 20:13:07Z wolfgang $
|
||||
// $Id: UIxCalView.h 1080 2007-06-12 22:15:47Z wolfgang $
|
||||
|
||||
#ifndef __SOGo_UIxCalView_H__
|
||||
#define __SOGo_UIxCalView_H__
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// $Id: UIxCalView.m 1052 2007-05-09 19:35:09Z wolfgang $
|
||||
// $Id: UIxCalView.m 1080 2007-06-12 22:15:47Z wolfgang $
|
||||
|
||||
#import "common.h"
|
||||
//#import <OGoContentStore/OCSFolder.h>
|
||||
|
||||
Reference in New Issue
Block a user