From 4bdcb88a69a1052055daf20bab379c203a634e62 Mon Sep 17 00:00:00 2001 From: znek Date: Mon, 16 Aug 2004 09:54:09 +0000 Subject: [PATCH] timezone hack git-svn-id: http://svn.opengroupware.org/SOGo/trunk@249 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/Scheduler/ChangeLog | 8 +++++++- SOGo/UI/Scheduler/UIxTimeDateControl.m | 10 +++++++++- SOGo/UI/Scheduler/Version | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index 8b0273c2..270023d2 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,3 +1,9 @@ +2004-08-16 Marcus Mueller + + * v0.9.56 + + * UIxTimeDateControl.m: HACK: added correct timeZone. + 2004-08-16 Helge Hess * v0.9.55 @@ -6,7 +12,7 @@ * UIxAppointmentEditor.m: add default start/enddates -2004-08-15 Marcus Mueller +2004-08-16 Marcus Mueller * v0.9.54 diff --git a/SOGo/UI/Scheduler/UIxTimeDateControl.m b/SOGo/UI/Scheduler/UIxTimeDateControl.m index a86defa0..5a981c9d 100644 --- a/SOGo/UI/Scheduler/UIxTimeDateControl.m +++ b/SOGo/UI/Scheduler/UIxTimeDateControl.m @@ -66,6 +66,14 @@ @implementation UIxTimeDateControl +static NSTimeZone *MET = nil; + ++ (void)initialize { + if (MET == nil) { + MET = [[NSTimeZone timeZoneWithAbbreviation:@"MET"] retain]; + } +} + - (void)dealloc { [self->controlID release]; [self->label release]; @@ -177,7 +185,7 @@ hour:_hour minute:_minute second:_second - timeZone:[[self date] timeZone]]; + timeZone:MET]; [self debugWithFormat:@"%s setting date:%@", __PRETTY_FUNCTION__, d]; [self _setDate:d]; } diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 8518823c..30fb2be9 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,6 +1,6 @@ # $Id$ -SUBMINOR_VERSION:=55 +SUBMINOR_VERSION:=56 # v0.9.41 requires libNGObjWeb v4.2.431 # v0.9.31 requires libWEExtensions v4.2.52 -- 2.39.2