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:<br><br># cat test.php <br><?<br>print date('r') . "\n";<br>
?><br># /usr/bin/php test.php<br>Wed, 22 Dec 2010 18:58:36 -0300<br># /kolab/bin/php test.php <br>Wed, 22 Dec 2010 19:58:40 -0200<br><br>I haven't found a timezone parameter in php configuration. I don't undertastand what's happening. This is breaking FB and other things.<br>
<br>and more confusing things (my timezone is Buenos_Aires, /etc/localtime is correct):<br><br># TZ="America/Argentina/Buenos_Aires" /kolab/bin/php test.php <br>Wed, 22 Dec 2010 20:00:26 -0200<br># TZ="America/Argentina/Buenos_Aires" /usr/bin/php test.php <br>
Wed, 22 Dec 2010 19:00:33 -0300<br># TZ="America/Argentina/Catamarca" /kolab/bin/php test.php <br>
Wed, 22 Dec 2010 19:00:52 -0300<br>
# TZ="America/Argentina/Catamarca" /usr/bin/php test.php <br>Wed, 22 Dec 2010 19:00:40 -0300<br><br>My workaround now is using Catamarca as timezone in Horde config, but this doesn't make any sense for me.<br>
<br>Regards,<br> Diego<br clear="all"><br>-- <br>Diego Woitasen<br>XTECH<br>