php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38650 Time Zone problem OBLY with WST
Submitted: 2006-08-30 06:53 UTC Modified: 2006-08-30 07:12 UTC
From: hebbs at visualanalysis dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.5 OS: WIndows XP
Private report: No CVE-ID: None
 [2006-08-30 06:53 UTC] hebbs at visualanalysis dot com
Description:
------------
time()



Reproduce code:
---------------
echo date("Y-m-d H:i:s",time());




Expected result:
----------------
Result to show correct time.

Php.ini via PHPINFO() to show Date -> Default TimeZone correctly. 

Actual result:
--------------
On computer with time set to any GMT+08:00 time zone the result shows UTC time.

Viewing php.ini file via phpinfo() shows default time zone as UTC.

Change computer time to ANY other time zone, restart apache
result shows correct time and phpinfo() shows default time zone correctly.

PHP Version
-----------
5.1.4 (Not displayed on select.)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-30 07:12 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Set the timezone with the following setting:
http://no.php.net/manual/en/ref.datetime.php#ini.date.timezone
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 07:01:30 2024 UTC