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
856 stars 111 forks source link

Wrong time with timestamp in Asia/Tehran #117

Closed parsasamandi closed 3 years ago

parsasamandi commented 3 years ago

Hi, thank you for this great work currently i have faced a problem with time ($timestamp)->format('Y-m-d H:i:s'); It does not show the right time in Asia/Tehran even though I used date_default_timezone_set('Asia/Tehran'); I do not know why, I tried everything I could.

parsasamandi commented 3 years ago

It was solved. In config/app.php change timezone. In my case,I changed it into timezone' => 'Asia/Tehran.