|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-08-11 15:24 UTC] a at b dot c dot de
[2018-08-14 01:54 UTC] conkay at foxmail dot com
[2018-08-14 01:55 UTC] conkay at foxmail dot com
-Status: Open
+Status: Closed
[2018-08-14 01:55 UTC] conkay at foxmail dot com
[2018-08-14 12:51 UTC] ab@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
Description: ------------ The class IntlDateFormatter gives the wrong result, it affects the time from 00:00 AM to 01:00 AM in any timezone. Mybe other versions have the same bug. Test script: --------------- $time = strtotime("2018-08-10 04:00:00 UTC"); date_default_timezone_set("America/New_York"); echo date('Y-m-d H:i:s', $time), "\n"; $formatter = \IntlDateFormatter::create("en_US", NULL, NULL, "America/New_York"); echo $formatter->format($time), "\n"; Expected result: ---------------- 2018-08-10 00:00:00 Friday, August 10, 2018 at 00:00:00 AM Eastern Daylight Time Actual result: -------------- 2018-08-10 00:00:00 Friday, August 10, 2018 at 12:00:00 AM Eastern Daylight Time