Re: time zone ignored (both via ini or in code)

From: Date: Tue, 02 Nov 2010 16:43:54 +0000
Subject: Re: time zone ignored (both via ini or in code)
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-309241@lists.php.net to get a copy of this message
On Tue, Nov 2, 2010 at 10:37 AM, Nathan Nobbe <quickshiftin@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

« previous php.general (#309241) next »