[OGo-XML-RPC] zOGI and timeZone
Tobias Kaefer
xmlrpc@opengroupware.org
Fri, 25 Apr 2008 06:34:24 +0200
Sorry, but I have one point, that I forgot (I wrote the last mail in a
little bit of a hurry):
In zOGIAction.m (trunk in svn rev. 968) line 458, there is the timeZone
set by:
[dateValue setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"GMT"]];
So this should be the place where the timeZone is set.
I recognized just this morning, that I commented this line out for
debugging. Once again sorry.
Greets
Tobias
Adam Tauno Williams schrieb:
>>>> Wouldn't it be better to do it in a way like this: (??)
>>>> [dateValue setTimeZone:timeZone]
>>> Possibly. But I recall having a bear of a time getting timezones to
>>> work correctly; and the "[dateValue setTimeZone:timeZone]" (looking at
>>> my notes) was essentially a no-op (it had no effect at all), resulting
>>> in the kludge seen above.
>> I recognized that to. But since I need the timeZone in sope-operations
>> for this recurrence issue, I tested it with
>> ...
>> zoneDiff = [timeZone secondsFromGMTForDate:dateValue];
>> if (zoneDiff != 0){
>> dateValue = [dateValue dateByAddingYears:0
>> months:0
>> days:0
>> hours:0
>> minutes:0
>> seconds:(zoneDiff * -1)];
>> [dateValue setTimeZone:timeZone]
>> }
>> ...
>> And that works - strangely but it does. You get the right
>> appointment-date(s) set in the DB and the timeZone is available for
>> other operations in OGO, Zidestore and Sope.
>
> Awesome. I'm really confused how the timezone in the date objects is
> *supposed* to work - my understanding just comes from kicking the thing
> until it does what I want.
>
> zOGI r968 on Google Code now has this; I'll run it through my tests.
>
--
Mit freundlichen Gruessen / with kind regards
Tobias S. Käfer
Tobias S. Kaefer * Portal-Development
ABAS Software AG, Suedendstrasse 42, 76135 Karlsruhe, GERMANY
Fon: +49 721 967 23 0, Fax: +49 721 967 23 100
Managing board / Vorstand: Werner Strub (CEO, Vorsitzender), Peter Walser
Chairman supervisory board / Aufsichtsratsvorsitzender: Thomas Frank
Company Register / Handelsregister: HRB 107644 Amtsgericht Mannheim
please visit our homepage / Bitte besuchen Sie unsere Homepage:
http://www.abas.de