|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-30 09:51 UTC] dpmancus at gmail dot com
[2012-10-04 03:35 UTC] laruence@php.net
-Assigned To:
+Assigned To: cataphract
[2013-06-09 22:16 UTC] cataphract@php.net
-Status: Assigned
+Status: Not a bug
[2013-06-09 22:16 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
Description: ------------ $a= \DateTime::createFromFormat('Y-m-d H:i:s', '2012-01-01 10:56:31'); $formatter = new IntlDateFormatter( 'it', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'Europe/Rome', \IntlDateFormatter::GREGORIAN, 'd-MMMM-Y H:m:s' ); echo "\ndate: " . date('d-m-Y H:i:s', $a->getTimestamp()) . "\n"; echo "formatter: " . $formatter->format($a->getTimestamp()) . "\n\n"; Expected result: ---------------- date: 01-01-2012 11:55:38 formatter: 1-gennaio-2012 10:55:38 Actual result: -------------- date: 01-01-2012 11:55:38 formatter: 1-gennaio-2011 10:55:38