Bug #60960 [Opn->Ver]: Wrong number of days.

From: Date: Wed, 31 Mar 2021 16:35:11 +0000
Subject: Bug #60960 [Opn->Ver]: Wrong number of days.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233104@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60960&edit=1 ID: 60960 Updated by: cmb@php.net Reported by: robertosuursoo at yahoo dot com dot br Summary: Wrong number of days. -Status: Open +Status: Verified Type: Bug Package: Date/time related Operating System: Ubuntu 11.04 64bits PHP Version: Irrelevant Block user comment: N Private report: N New Comment: For reference: <https://3v4l.org/P5D2u>. Previous Comments: ------------------------------------------------------------------------ [2021-03-31 16:34:23] cmb@php.net Related To: Bug #80913 ------------------------------------------------------------------------ [2012-02-03 14:12:17] derick@php.net This is a bug, it should show 1. ------------------------------------------------------------------------ [2012-02-03 14:10:36] robertosuursoo at yahoo dot com dot br The function call worked perfectly and solved the problem! date_default_timezone_set('UTC'); Thank you very much! ------------------------------------------------------------------------ [2012-02-03 13:43:32] robertosuursoo at yahoo dot com dot br Thanks a lot! ------------------------------------------------------------------------ [2012-02-03 00:50:52] aharvey@php.net Yep, this happens with the Brazil/East time zone, so it's just crossing a DST boundary: if you look at $interval->h on the last interval, it's 23 hours from midnight on the 21st to midnight on the 22nd and therefore not a full day. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=60960 -- Edit this bug report at https://bugs.php.net/bug.php?id=60960&edit=1

« previous php.bugs (#233104) next »