|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-02-21 19:21 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2018-02-21 19:21 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
Description: ------------ I have tested in many environment and versions and i got same bug in all. Test script: --------------- $time1 = strtotime('2017-3-18'); $time2 = strtotime('2017-3-19'); $formater = new \IntlDateFormatter('en_US' . '@calendar=persian' , \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'Asia/Tehran', \IntlDateFormatter::TRADITIONAL, 'Y-M-d'); echo $formater->format($time1); // return correct Persian date:1395-12-28 echo $formater->format($time2); // returns wrong Persian date:1396-12-29 Its year in increased by 1