|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-17 08:31 UTC] aharvey@php.net
-Status: Open
+Status: Bogus
[2011-01-17 08:31 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jun 03 20:00:01 2026 UTC |
Description: ------------ Hello. I have catched strange behavior of php. If 2nd argument of function date(or strftime) is 0, this function add some hours to result. For example, in Moscow they add 3 hours (difference between GMT). Is it true ? Test script: --------------- echo date('c', time()) . "\n"; echo date('c', time() - time()) . "\n"; Expected result: ---------------- 2011-01-17T09:34:00+03:00 1970-01-01T00:00:00+03:00 Actual result: -------------- 2011-01-17T09:34:00+03:00 1970-01-01T03:00:00+03:00