#35200 [Bgs]: date_default_timezone_set() doesn't work with time()
| From: | lunter at interia dot pl | Date: | Sat, 12 Nov 2005 18:10:02 +0000 |
| Subject: | #35200 [Bgs]: date_default_timezone_set() doesn't work with time() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88077@lists.php.net to get a copy of this message | ||
ID: 35200
User updated by: lunter at interia dot pl
Reported By: lunter at interia dot pl
Status: Bogus
Bug Type: Date/time related
Operating System: winXP
PHP Version: 5.1.0RC4
New Comment:
Sorry, I make a mistake.
Previous Comments:
------------------------------------------------------------------------
[2005-11-12 18:28:14] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
time() returns seconds from 1.1.1970 00:00 GMT - that\'s
for good reasons timezone independet
------------------------------------------------------------------------
[2005-11-12 17:52:43] lunter at interia dot pl
Description:
------------
date_default_timezone_set() doesn't work with time()
Reproduce code:
---------------
<?
date_default_timezone_set('Europe/London');
print(time().'<br>');
date_default_timezone_set('Europe/Warsaw');
print(time().'<br>');
?>
Expected result:
----------------
Different values.
Actual result:
--------------
The same values.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35200&edit=1