ID:               37093
 User updated by:  robertsaenz at gmail dot com
 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:

What I meant by "not working" was that I am still getting:

2006-04-16 12:19:55 MST 0

When I'm expecting:

2006-04-16 13:19:55 MDT 1

I restarted Apache (which is Apache2 by the way... don't know if it
matters but I thought I would throw that in there as extra info).  I
also stopped it and the started it manually.  I even restarted the
server and I still get the same result.

I'm using the correct php.ini (I just double checked to make sure).

The reason I used "US/Mountain" was because it worked with the
date_default_timezone_set().  However, I tried "America/Denver" (who is
in the same timezone).  I got the same result.


Previous Comments:
------------------------------------------------------------------------

[2006-04-16 09:50:16] [EMAIL PROTECTED]

You shouldn't use US/Mountain anyway, use one of the America/* listed
here: http://www.php.net/manual/en/timezones.america.php


------------------------------------------------------------------------

[2006-04-16 09:39:40] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

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

Reply via email to