php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34475 servers: echo date("T",time());
Submitted: 2005-09-12 08:13 UTC Modified: 2005-09-13 07:05 UTC
From: huanguuq at 163 dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.0RC2 OS: window2003
Private report: No CVE-ID: None
 [2005-09-12 08:13 UTC] huanguuq at 163 dot com
Description:
------------
<?php echo date("T",time()); ?>

display:
UTC 

Reproduce code:
---------------
<?php echo date("T",time()); ?>

display:
UTC 

Expected result:
----------------
only display:UTC

Actual result:
--------------
location time zone
?й???׼ʱ??

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-12 08:43 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-09-12 09:17 UTC] huanguuq at 163 dot com
PHP Version 5.1.0RC2-dev
<?php echo date("T",time()); ?>
Have not changed , show UTC
 [2005-09-12 09:49 UTC] derick@php.net
Works fine here...
 [2005-09-12 10:00 UTC] huanguuq at 163 dot com
no,no
my OS is chinese window2003
my friend test in php 4.3.4 is right
 [2005-09-12 10:06 UTC] sniper@php.net
If it shows UTC and you have not set it with the "date.timezone" setting in php.ini -> it works as expected.
 [2005-09-12 10:48 UTC] huanguuq at 163 dot com
I set up php.ini file date.timezone ="GMT +8:00" OR date.timezone ="+8:00" Also restart the computer again Have not changed , show UTC 
it not automatic check timezone function?
 [2005-09-12 11:31 UTC] nlopess@php.net
You can use: 'Etc/GMT-8' or 'Asia/Taipei', for example.
Read the note on this page: http://php.net/date_default_timezone_set
 [2005-09-13 07:05 UTC] huanguuq at 163 dot com
Have not solved the substantive problem 
<?php echo date("T",time()); ?>
It is correct that my computer in php4.4.0
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 10:00:03 2025 UTC