Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ساپورت نشدن سال های بیشتر از 1416 #127

Closed
alihastam opened this issue May 5, 2021 · 2 comments
Closed

ساپورت نشدن سال های بیشتر از 1416 #127

alihastam opened this issue May 5, 2021 · 2 comments

Comments

@alihastam
Copy link

در این پکیج سال های بیشتر از 1416 مثلا 1417 برای تبدیل به سال میلادی ساپورت نمیشه
2021-05-05_171642

خروجی : 1970-01-01

@amirhs712
Copy link

amirhs712 commented Dec 23, 2021

Hey, this problem also occurred to me when I was using an old version of PHP 7.2 on windows (xampp).

I'm not sure if this problem is caused by the package itself, however changing my PHP installation fixed the issue for me.
I ran your code with PHP 8.0.13 on Ubuntu with a Laravel 8, the result was "2039-01-01".

@morilog
Copy link
Owner

morilog commented Aug 7, 2022

I write a test case to prove it. It supports your described use case

1b0d8f0

@morilog morilog closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants