Bug #80540 [Opn->Nab]: Wrong strtotime() result

From: Date: Tue, 22 Dec 2020 10:38:24 +0000
Subject: Bug #80540 [Opn->Nab]: Wrong strtotime() result
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231216@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80540&edit=1 ID: 80540 Updated by: requinix@php.net Reported by: kekrta500 at gmail dot com Summary: Wrong strtotime() result -Status: Open +Status: Not a bug Type: Bug -Package: Math related +Package: Date/time related Operating System: Debian PHP Version: 7.3.25 Block user comment: N Private report: N New Comment: Congratulations on discovering Daylight Saving Time. Previous Comments: ------------------------------------------------------------------------ [2020-12-22 08:31:07] kekrta500 at gmail dot com Description: ------------ <?php $start = strtotime('2020-03-08'); $end = strtotime('2020-03-09'); echo (($end - $start) / 24 / 60 / 60); // https://sandbox.onlinephpfunctions.com/code/fff39352ad15de4414a53383499d02056f53bb22 Test script: --------------- <?php $start = strtotime('2020-03-08'); $end = strtotime('2020-03-09'); echo (($end - $start) / 24 / 60 / 60); Expected result: ---------------- 1 Actual result: -------------- 0.95833333333333 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80540&edit=1

« previous php.bugs (#231216) next »