[horde] kronolith off-by-one-hour daylight savings time bug

Robert Schetterer rs at sys4.de
Thu Mar 6 18:31:41 UTC 2014


Am 06.03.2014 18:48, schrieb Michael J Rubinsky:
> 
> Quoting Robert Schetterer <rs at sys4.de>:
> 
>> Am 06.03.2014 17:19, schrieb Michael J Rubinsky:
>>>
>>> Quoting Robert Schetterer <rs at sys4.de>:
>>>
>>>> Am 06.03.2014 16:02, schrieb Michael J Rubinsky:
>>>>> Place the tzdata file somewhere the webserver can access, then in the
>>>>> phpshell in Horde's admin section:
>>>>>
>>>>> $tz = new Horde_Timezone(array(
>>>>>             'location' => 'file:///path/to/tzdata-latest.tar.gz',
>>>>>             'temp' => Horde::getTempDir()));
>>>>>
>>>>> var_dump($tz->getZone('America/New_York'));
>>>>
>>>> hm seems to be a problem
>>>>
>>>> exception 'Horde_Timezone_Exception' with message 'Unable to open file
>>>> file:///path/to/tzdata-latest.tar.gz.' in
>>>> /usr/share/horde/pear/php/Horde/Timezone.php:195
>>>> Stack trace:
>>>
>>> You did change the path to the actual path on your filesystem, right?
>>
>> my fault , kids running wild during test *g
>>
>>
>>
>> now test
>>
>> $tz = new Horde_Timezone(array(
>>             'location' => 'file:///usr/share/horde/tzdata-latest.tar.gz',
>>             'temp' => Horde::getTempDir()));
>>
>> var_dump($tz->getZone('America/New_York'));
>>
>>
>>
>> exception 'Horde_Timezone_Exception' with message 'Timezone
>> America/New_York not found' in
>> /usr/share/horde/pear/php/Horde/Timezone.php:130
>> Stack trace:
>> #0 /usr/share/horde/admin/phpshell.php(64) : eval()'d code(5):
>> Horde_Timezone->getZone('America/New_Yor...')
>> #1 /usr/share/horde/admin/phpshell.php(64): eval()
>> #2 {main}
>>
>>
>> same with Europe/Berlin
> 
> Third times a charm... try now?
> 
> 

seems to be fixed, double tested serial weekly event ,double checked
pass trough 2 daylight  timezone borders ( Oktober 2013 / March 2014 )
Europe/Berlin with thunderbird lightning via caldav

right Timezone can now be seen too in the serial event extend view

Great work so far !!!
---------------------
---------------------
---------------------

tested with

https://github.com/horde/horde/blob/5804ceef888dc93f8758d386df14b69d7f0b89dd/framework/Timezone/lib/Horde/Timezone.php

apache restart

but

your phpshell test now crashes/ shows blank page now
no idea if this is for interest now


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


More information about the horde mailing list