Edit report at http://bugs.php.net/bug.php?id=53101&edit=1
ID: 53101 Updated by: ahar...@php.net Reported by: exebenj at yahoo dot com dot ar Summary: Date change -Status: Open +Status: Bogus Type: Bug Package: *General Issues Operating System: Windows PHP Version: 5.2.14 Block user comment: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-10-19 12:40:10] 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-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