php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53101 Date change
Submitted: 2010-10-19 04:27 UTC Modified: 2010-10-20 04:46 UTC
From: exebenj at yahoo dot com dot ar Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.14 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: exebenj at yahoo dot com dot ar
New email:
PHP Version: OS:

 

 [2010-10-19 04:27 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-19 12:40 UTC] uramihsayibok at gmail dot com
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().
 [2010-10-20 04:46 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-10-20 04:46 UTC] aharvey@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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 22 20:00:03 2025 UTC