Re: Bug #14389 [Opn]: Timezone Offsets Wrong

From: Date: Sat, 26 Jul 2008 15:06:31 +0000
Subject: Re: Bug #14389 [Opn]: Timezone Offsets Wrong
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4902@lists.php.net to get a copy of this message
add "php" tags around it then and it does work.. 2008/7/26 PEAR Bug Database <pear-qa@lists.php.net> > ATTENTION! Do NOT reply to this email! > To reply, use the web interface found at > http://pear.php.net/bugs/bug.php?id=14389&edit=2 > > > ID: 14389 > Updated by: daniel.oconnor@gmail.com > Reported By: gopheryarrowzoo at googlemail dot com > Summary: Timezone Offsets Wrong > Status: Open > Type: Bug > Package: Date > Operating System: CentOS > Package Version: CVS > PHP Version: 5.1.6 > New Comment: > > Uh, the test script provided isn't executable in its current form. > > > Previous Comments: > ------------------------------------------------------------------------ > > [2008-07-22 15:35:53] gopheryarrowzoo > > Description: > ------------ > All Timezones with Etc/GMT give the wrong expected result the time > related fields like offset and 'name' fields. > noticed bug when trying to convert TimeZones from where my server is to > 'localtime' anywhere in the world, trying with 'Etc/GMT' then the hours > test script just shows quick example. > > > Test script: > --------------- > include 'date/Timezone.php'; > $tz_gmtminus12=&new Timezone('Etc/GMT-12'); > print_r($tz); > > > Expected result: > ---------------- > Date_TimeZone Object ( [id] => Etc/GMT-12 [longname] => GMT-12:00 > [shortname] => GMT-12:00 [hasdst] => [dstlongname] => GMT-12:00 > [dstshortname] => GMT-12:00 [offset] => -43200000 [default] => ) > > Actual result: > -------------- > Date_TimeZone Object ( [id] => Etc/GMT-12 [longname] => GMT+12:00 > [shortname] => GMT+12:00 [hasdst] => [dstlongname] => GMT+12:00 > [dstshortname] => GMT+12:00 [offset] => 43200000 [default] => ) > > ------------------------------------------------------------------------ > > >

« previous php.pear.qa (#4902) next »