PHP timezone

Bogomil Shopov shopov at kolabsys.com
Mon Dec 27 10:54:54 CET 2010


On Thursday, December 23, 2010 08:29:50 pm Diego Woitasen wrote:
> On Thu, Dec 23, 2010 at 12:53 PM, Bogomil Shopov <shopov at kolabsys.com>wrote:
> > On Thursday, December 23, 2010 05:47:24 pm Bogomil Shopov wrote:
> > > On Thursday, December 23, 2010 12:03:09 am Diego Woitasen wrote:
> > > > I have a weird problem with PHP timezone. It's looks like OpenPKG PHP
> > 
> > and
> > 
> > > > Ubuntu PHP have different time zones. Steps to reproduce the problem:
> > > > 
> > > > # cat test.php
> > > > <?
> > > > print date('r') . "\n";
> > > > ?>
> > > > # /usr/bin/php test.php
> > > > Wed, 22 Dec 2010 18:58:36 -0300
> > > > # /kolab/bin/php test.php
> > > 
> > > Can you run this and paste the response here:
> > > #/kolab/bin/php -i|grep "zone"
> > 
> > I think I found the problem, byt I still need your feedback.
> > 
> > 
> > --
> > Bogomil "Bogo" Shopov
> > Senior Web Engineer
> > 
> > Kolab Systems AG
> > Zürich, Switzerland
> > 
> > e: shopov at kolabsys.com
> > t: +49 251 871 369 77
> > w: http://kolabsys.com
> > 
> > pgp: E69A226A Bogomil "Bogo" Shopov
> 
> $ /kolab/bin/php -i|grep "zone"
> "Olson" Timezone Database Version => 2008.9
> Timezone Database => internal
> Default timezone => America/Buenos_Aires
> date.timezone => no value => no value
> 
> Hmm... Database => internal?? What's that?

IT means we are using a internal algorithm for setting the date, instead of 
using PHP.ini declaration and the problem appears to be there.
> 
> Regads,
>  Diego

-- 

Bogomil "Bogo" Shopov
Senior Web Engineer

Kolab Systems AG
Zürich, Switzerland

e: shopov at kolabsys.com
t: +49 251 871 369 77
w: http://kolabsys.com

pgp: E69A226A Bogomil "Bogo" Shopov




More information about the users mailing list