PHP timezone

Bogomil Shopov shopov at kolabsys.com
Tue Dec 28 14:44:39 CET 2010


On Monday, December 27, 2010 11:54:54 am Bogomil Shopov wrote:
> 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.

Where is your correct date - in Kolab install or in plain PHP (ubuntu default)

> 
> > Regads,
> > 
> >  Diego

-- 

Bogomil "Bogo" Shopov
Senior Web Engineer


Kolab Systems AG
Zürich, Switzerland

e: shopov at kolabsys.com
t: +41 43 5016691 (ext. 2115 649)
w: http://kolabsys.com
b:http://talkweb.eu

pgp: E69A226A Bogomil "Bogo" Shopov




More information about the users mailing list