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

Robert Schetterer rs at sys4.de
Thu Mar 6 17:11:53 UTC 2014


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



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