[OGo-XML-RPC] zOGI and timeZone
Tobias Kaefer
xmlrpc@opengroupware.org
Thu, 24 Apr 2008 15:11:47 +0200
Adam Tauno Williams:
>> 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.
Greets
Tobias
--
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