|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-07-29 16:37 UTC] php-work at yandex dot ru
Description:
------------
Code:
<?php
echo date("r");
?>
print Fri, 29 Jul 2005 14:22:56 +0000, but stated time zone: (GMT+03:00) Moscow.
I tried to use other time zone, setlocale, but result is not changed.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
I has tried date_default_timezone_set('GMT'), but no result. date_default_timezone_get return UTC. If add the date_default_timezone_set('GMT'), return GMT. Script: <?php date_default_timezone_set('GMT'); echo date_default_timezone_get(); echo date('H'); ?> print GMT20 (but current time - 00:42).And else. I tried it (echo date('H');) on PHP5.0.4b3 and result is true, 00....