On Tue, Nov 2, 2010 at 10:37 AM, Nathan Nobbe <quickshif...@gmail.com>wrote:

> dude at this point i dont want to sound too much like a troll, but php 5.1
> is some really old software.  frankly this is why i chose not to run on
> centos during my evaluation of it.  i understand the concept behind running
> proven stable software, but i think centos is taking that notion to the
> extreme.  i would probly try building a more recent version of php from
> source and see if that helps.
>

yeah, we have one centos box left on our network atm, 5.2

$ cat /etc/redhat-release
CentOS release 5.2 (Final)

php 5.2.6

$ php -v
PHP 5.2.6 (cli) (built: May  5 2008 14:41:03)
Copyright (c) 1997-2008 The PHP Group

looks like if i set the timezone explicitly the date functions are working
correctly (obviously though im not sure if this is a 5.1 vs 5.2 issue, just
saying :D)

php > echo "<Br>" . strftime("%D %T %z %Z") . "<br>";
<Br>11/02/10 10:40:12 -0600 MDT<br>

php > date_default_timezone_set('America/Chicago');
php > echo "<Br>" . strftime("%D %T %z %Z") . "<br>";
<Br>11/02/10 11:40:53 -0500 CDT<br>

-nathan

Reply via email to