morilog / jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in php appliations, based on Jalali (Shamsi) DateTime class.
MIT License
852 stars 107 forks source link

Wrong display of year output in lowercase y #134

Closed enaeim closed 1 year ago

enaeim commented 2 years ago

Hi.

Wrong display of year output, When I use lowercase y on format method. e.g.:

        Jalalian::fromDateTime('2021-12-22 18:30:00')->format('%y-%m-%d');
        Jalalian::fromDateTime('2021-12-22 18:30:00')->format('%A, %d %B %y');
        Jalalian::fromDateTime('2021-12-22 18:30:00')->format('%d %B %y، ساعت H:i');

out put:

image

This problem exists for all years between 1400 and 1409.

morilog commented 1 year ago

This has been fixed long time ago