Bug #53101 [Com]: Date change
| From: | uramihsayibok at gmail dot com | Date: | Tue, 19 Oct 2010 10:40:10 +0000 |
| Subject: | Bug #53101 [Com]: Date change | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155323@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53101&edit=1
ID: 53101
Comment by: uramihsayibok at gmail dot com
Reported by: exebenj at yahoo dot com dot ar
Summary: Date change
Status: Open
Type: Bug
Package: *General Issues
Operating System: Windows
PHP Version: 5.2.14
Block user comment: N
New Comment:
This is very, very likely not a bug.
date() formats according to the local (wherever the code is actually
running)
time. If you want a different timezone, use date_default_timezone_set().
If you
want GMT time use gmdate().
Previous Comments:
------------------------------------------------------------------------
[2010-10-19 04:27:15] exebenj at yahoo dot com dot ar
Description:
------------
<?php
echo date("H");
?>
Test script:
---------------
In this is script, if you run with date octuber 16th, it put the actual
hour. But if your put with date octuber 17th the result is the actual
hour + 1.
Can you check it(or confirm), because I had problem with this in my
server. The hour in my server is an important parameter.
Regards.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53101&edit=1