PHP 5.3 date.timezone

PHP 5.3 date.timezone

am 18.07.2009 05:15:22 von John Corry

--00163662e56bb77dc3046ef25088
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Why is date.timezone blank...I'm setting it in the config file?
How come PHP is ignorning teh directives I have set in the .ini?

OS X with PHP 5.3 compiled from source on Apache 2.2.9

WTF?

Here's my php.ini file:[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York

date.default_latitude = 34.3044
date.default_longitude = -83.8338

;date.sunrise_zenith = 90.583333
;date.sunset_zenith = 90.583333

But here's my phpinfo() output:
*Warning*: phpinfo()
[function.phpinfo]:
It is not safe to rely on the system's timezone settings. You are *required*
to use the date.timezone setting or the date_default_timezone_set()
function. In case you used any of those methods and you are still getting
this warning, you most likely misspelled the timezone identifier. We
selected 'America/New_York' for 'EDT/-4.0/DST' instead in *
/Users/jcorry/web_work/jcorry/httpdocs/info.php* on line *2*
date/time support enabled "Olson" Timezone Database Version 2009.10 Timezone
Database internal Default timezone America/New_York
DirectiveLocal ValueMaster Value date.default_latitude31.766731.7667
date.default_longitude35.233335.2333 date.sunrise_zenith90.58333390.583333
date.sunset_zenith90.58333390.583333 date.timezone*no value**no value*

--
John Corry
PHP developer - 3by400, Inc
http://www.3by400.com

--00163662e56bb77dc3046ef25088--

Re: PHP 5.3 date.timezone

am 18.07.2009 15:55:08 von Ashley Sheridan

On Fri, 2009-07-17 at 23:15 -0400, John Corry wrote:
> Why is date.timezone blank...I'm setting it in the config file?
> How come PHP is ignorning teh directives I have set in the .ini?
>
> OS X with PHP 5.3 compiled from source on Apache 2.2.9
>
> WTF?
>
> Here's my php.ini file:[Date]
> ; Defines the default timezone used by the date functions
> date.timezone = America/New_York
>
> date.default_latitude = 34.3044
> date.default_longitude = -83.8338
>
> ;date.sunrise_zenith = 90.583333
> ;date.sunset_zenith = 90.583333
>
> But here's my phpinfo() output:
> *Warning*: phpinfo()
> [function.phpinfo]:
> It is not safe to rely on the system's timezone settings. You are *required*
> to use the date.timezone setting or the date_default_timezone_set()
> function. In case you used any of those methods and you are still getting
> this warning, you most likely misspelled the timezone identifier. We
> selected 'America/New_York' for 'EDT/-4.0/DST' instead in *
> /Users/jcorry/web_work/jcorry/httpdocs/info.php* on line *2*
> date/time support enabled "Olson" Timezone Database Version 2009.10 Timezone
> Database internal Default timezone America/New_York
> DirectiveLocal ValueMaster Value date.default_latitude31.766731.7667
> date.default_longitude35.233335.2333 date.sunrise_zenith90.58333390.583333
> date.sunset_zenith90.58333390.583333 date.timezone*no value**no value*
>
Are you editing the right php.ini and restarting Apache? I've made that
mistake before, and been close to tearing my hair out wondering why my
settings weren't being applied!

Thanks
Ash
www.ashleysheridan.co.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php