#37093 [Bgs]: Daylight Savings Time error
| From: | derick@php.net | Date: | Sun, 16 Apr 2006 09:50:17 +0000 |
| Subject: | #37093 [Bgs]: Daylight Savings Time error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95860@lists.php.net to get a copy of this message | ||
ID: 37093
Updated by: derick@php.net
Reported By: robertsaenz at gmail dot com
Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP Professional
PHP Version: 5.1.2
New Comment:
You shouldn't use US/Mountain anyway, use one of the America/* listed
here: http://www.php.net/manual/en/timezones.america.php
Previous Comments:
------------------------------------------------------------------------
[2006-04-16 09:39:40] tony2001@php.net
What do you mean by "not working"?
Did you restart apache? Did you look in phpinfo() and check that you're
modifying the right php.ini file?
------------------------------------------------------------------------
[2006-04-16 09:28:03] robertsaenz at gmail dot com
I must not be doing something right. I'm trying to do the
date.timezone method but for some reason it is not working for me. I'm
doing:
date.timezone = "US/Mountain"
Is there a specific area that it needs to go under php.ini? Or can it
just go anywhere in the ini file? I tried it without quotes to no
avail. Any help would be great thanks. I'm really trying to avoid
having to use the date_default_timezone_set() function.
------------------------------------------------------------------------
[2006-04-16 08:41:59] tony2001@php.net
Well, I guess using date.timezone INI setting is even easier. But yes,
you can use date_default_timezone_set()/_get() either.
------------------------------------------------------------------------
[2006-04-16 08:36:49] robertsaenz at gmail dot com
Oops! Sorry meant to say MDT and I should have expected MDT but I
didn't put that down, nor did I put a 1 expected for DST in expected
result. Yeah using date_default_timezone_set() worked. Is there a way
to change this permanently or do I have to do this for every script
that uses the date function? Thanks.
------------------------------------------------------------------------
[2006-04-16 08:06:56] tony2001@php.net
>The timezone is: MST and I am in DST territory.
Which means it's actually MDT, not MST.
What if you set the correct timezone with date_default_timezone_set() ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37093
--
Edit this bug report at http://bugs.php.net/?id=37093&edit=1