#42486 [Opn->WFx]: strtotime() fails with UT timezone

From: Date: Thu, 30 Aug 2007 12:49:17 +0000
Subject: #42486 [Opn->WFx]: strtotime() fails with UT timezone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116881@lists.php.net to get a copy of this message
ID: 42486 Updated by: derick@php.net Reported By: up at co dot inbox dot lv -Status: Open +Status: Wont fix Bug Type: Unknown/Other Function Operating System: Gentoo Linux PHP Version: 5.2.4RC3 New Comment: UT is not really a easy measurable timezone, unlike UTC. To support this correctly we should take care of leapseconds, and this is very much something you don't want to do. See http://en.wikipedia.org/wiki/DUT1 for what is different between UTC and UT. Previous Comments: ------------------------------------------------------------------------ [2007-08-30 12:37:25] up at co dot inbox dot lv Description: ------------ strtotime() returns false if timezone is set to UT, it worked in php4 but is broken in php5 Reproduce code: --------------- <?php print strtotime('Tue, 21 Aug 2007 06:23:46 UT'); ?> Expected result: ---------------- On PHP Version 4.4.1: 1187677426 Actual result: -------------- Empty ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42486&edit=1

« previous php.bugs (#116881) next »