|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-02 06:27 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 09:00:01 2025 UTC |
Description: ------------ strtotime() reports an incorrect value for a particular date: 2010-03-15 It seems to think that this day has 23 hours! Reproduce code: --------------- --- From manual page: function.strtotime#Description --- <?php $a = strtotime("2010-03-14"); $b = strtotime("2010-03-15"); echo "Number of hours difference: ".(($b-$a)/3600)."<br />"; // shows 23 ! WRONG! // PHP Version 5.2.12 ?> Expected result: ---------------- Number of hours difference: 24 Actual result: -------------- Number of hours difference: 23