ID:               33920
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php-work at yandex dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Windows XP SP2
 PHP Version:      5CVS-2005-07-29 (dev)
 New Comment:

You're supposed to set the timezone to whatever your timezone IS, not
to GMT. Do NOT reopen this, there is no bug here.



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

[2005-07-29 22:48:48] php-work at yandex dot ru

Sorry, on PHP5.0.4

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

[2005-07-29 22:45:59] php-work at yandex dot ru

And else. I tried it (echo date('H');) on PHP5.0.4b3 and result is
true, 00....

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

[2005-07-29 22:43:22] php-work at yandex dot ru

I has tried date_default_timezone_set('GMT'), but no result.
date_default_timezone_get return UTC. If add the
date_default_timezone_set('GMT'), return GMT.
Script:
<?php
date_default_timezone_set('GMT');
echo date_default_timezone_get();
echo date('H');
?>
print GMT20 (but current time - 00:42).

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

[2005-07-29 20:00:43] [EMAIL PROTECTED]

Probably your TZ environment var is set to GMT.
So, you need to use the date_default_timezone_set() function to overide
it.

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

[2005-07-29 19:22:54] php-work at yandex dot ru

Tried, no effect.

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

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/33920

-- 
Edit this bug report at http://bugs.php.net/?id=33920&edit=1

Reply via email to