[php-src] Issue #8153: DateTime->sub produces different value than on older versions

From: Date: Fri, 01 Apr 2022 23:32:23 +0000
Subject: [php-src] Issue #8153: DateTime->sub produces different value than on older versions
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240643@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8153 Comment Author: hormus Current today explicity Europe/Rome 2022-04-02 01:27:00 ```php <?php $tz = new DateTimeZone('Europe/Rome'); $today = new DateTimeImmutable('today', $tz); // '2022-04-01 00:00:00.0' $todayLast = new DateTimeImmutable('today last microsecond', $tz); // correct '2022-04-01 23:59:59.999999' var_dump($todayLast); ``` It's work.

« previous php.bugs (#240643) next »