]> err.no Git - scalable-opengroupware.org/commitdiff
minor additions
authorznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 19 Jul 2004 17:08:47 +0000 (17:08 +0000)
committerznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 19 Jul 2004 17:08:47 +0000 (17:08 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@149 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/SOGo.xcode/project.pbxproj
SOGo/UI/SOGoUI/ChangeLog
SOGo/UI/SOGoUI/UIxComponent.h
SOGo/UI/SOGoUI/UIxComponent.m
SOGo/UI/Scheduler/ChangeLog
SOGo/UI/Scheduler/UIxAppointmentEditor.m

index 82e9800b25acb71522410e25e4b59117ee542889..3d62590a2a0937b4f50ea8c85c3033e1459d2434 100644 (file)
@@ -5,6 +5,34 @@
        };
        objectVersion = 39;
        objects = {
+               AD06608A06AC2F3F006525C9 = {
+                       children = (
+                               AD06608B06AC2F3F006525C9,
+                               AD06608C06AC2F4A006525C9,
+                       );
+                       isa = PBXVariantGroup;
+                       name = Locale;
+                       path = "";
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               AD06608B06AC2F3F006525C9 = {
+                       fileEncoding = 4;
+                       isa = PBXFileReference;
+                       lastKnownFileType = text;
+                       name = English;
+                       path = English.lproj/Locale;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               AD06608C06AC2F4A006525C9 = {
+                       isa = PBXFileReference;
+                       lastKnownFileType = text;
+                       name = French;
+                       path = French.lproj/Locale;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
                AD152B6F06AC159A002375D2 = {
                        fileEncoding = 4;
                        isa = PBXFileReference;
@@ -36,6 +64,8 @@
                        path = ChangeLog;
                        refType = 4;
                        sourceTree = "<group>";
+                       tabWidth = 4;
+                       usesTabs = 1;
                };
                AD6BCF0E069D77E9003664CD = {
                        fileEncoding = 4;
                                AD152B6F06AC159A002375D2,
                                E87205F30692E3D00099CBBD,
                                E87205D70692E3D00099CBBD,
+                               AD06608A06AC2F3F006525C9,
                                E87205CE0692E3D00099CBBD,
                                E87205DF0692E3D00099CBBD,
                                E87205E00692E3D00099CBBD,
                        path = sogod.m;
                        refType = 4;
                        sourceTree = "<group>";
+                       usesTabs = 0;
                };
                E87205ED0692E3D00099CBBD = {
                        fileEncoding = 4;
                        path = ChangeLog;
                        refType = 4;
                        sourceTree = "<group>";
+                       tabWidth = 4;
+                       usesTabs = 1;
                };
                E87208900692E3D30099CBBD = {
                        fileEncoding = 4;
index c81828cf499250699748bd6bf5e5018bbb65e9d1..e7f21c576680f440be5a525c31a3256853872420 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-19  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * UIxComponent.m: new method -backendTimeZone.
+
 2004-07-02  Helge Hess  <helge.hess@opengroupware.org>
 
        * UIxComponent.m: introduced 'viewTimeZone' method and adds some
index 8e99aba961153dbd80c9783997ec95e4572cb9dd..b97ec2cdc58158f6c7777d9e648f9c602afc7ff4 100644 (file)
@@ -47,6 +47,7 @@
 
 /* date selection */
 - (NSTimeZone *)viewTimeZone;
+- (NSTimeZone *)backendTimeZone;
 - (NSCalendarDate *)selectedDate;
 - (NSString *)dateStringForDate:(NSCalendarDate *)_date;
 - (NSCalendarDate *)dateForDateString:(NSString *)_dateString;
index c52f0b93a0521fcd0dd117cf03534dce89a2347e..5bda9cd0c66bb4f2686720052ef4746cf239821f 100644 (file)
 @implementation UIxComponent
 
 static NSTimeZone *MET = nil;
+static NSTimeZone *GMT = nil;
 
 + (void)initialize {
-  if (MET == nil) MET = [[NSTimeZone timeZoneWithAbbreviation:@"MET"] retain];
+  if (MET == nil) {
+    MET = [[NSTimeZone timeZoneWithAbbreviation:@"MET"] retain];
+    GMT = [[NSTimeZone timeZoneWithAbbreviation:@"GMT"] retain];
+  }
 }
 
 - (id)init {
@@ -158,6 +162,10 @@ static NSTimeZone *MET = nil;
   return MET;
 }
 
+- (NSTimeZone *)backendTimeZone {
+  return GMT;
+}
+
 - (NSCalendarDate *)selectedDate {
   NSString       *s;
   NSCalendarDate *cdate;
index 8345e43a3413f4ba16d38ef38ce0ab76b9770543..288dc8ccc3d41f08a4e4b8fb88425e3e9123239a 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-19  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * UIxAppointmentEditor.m: Use -backendTimeZone from UIxComponent.
+
 2004-07-07  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * UIxCalWeekOverview.wox: minor correction
index 156914d828d12b187fc550f96023f15cc7cfb733..0eeb5058c78268d77ebe78bc915135712a9edc68 100644 (file)
 
 @implementation UIxAppointmentEditor
 
-static NSTimeZone *GMT = nil;
-
-+ (void)initialize {
-    if (GMT == nil)
-        GMT = [[NSTimeZone timeZoneWithAbbreviation:@"GMT"] retain];
-}
-
 - (void)dealloc {
     [self->appointment release];
     [self->participants release];
@@ -256,7 +249,7 @@ static NSTimeZone *GMT = nil;
 
     date = [NSCalendarDate dateWithString:_str 
                            calendarFormat:@"%Y-%m-%d %H:%M %Z"];
-    [date setTimeZone:GMT];
+    [date setTimeZone:[self backendTimeZone]];
     return date;
 }