|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-21 22:59 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 05:00:01 2025 UTC |
Description: ------------ strtotime() function gives me a strange results, diffrent in PHP 5 and PHP 4. Reproduce code: --------------- <?php $date = 1090435469; echo date("d-m-Y H:i:s", $date) . '<br>'; // 21-07-2004 20:44:29 echo date("d-m-Y H:i:s", strtotime("+1 minute", $date)); // 21-07-2004 00:01:00 ?> Expected result: ---------------- 21-07-2004 20:44:29 21-07-2004 20:45:29 Actual result: -------------- 21-07-2004 20:44:29 21-07-2004 00:01:00