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
860 stars 110 forks source link

Warning: date_default_timezone_get() #35

Closed zahraHaghi closed 6 years ago

zahraHaghi commented 6 years ago

I use laravel5.4.I install jalali package.now when I run project, I see this message Whoops, looks like something went wrong. to understand the details entered this command in terminal php artisan key generate and I got this warning Warning: date_default_timezone_get(): Invalid date.timezone value 'Asia/Iran', we selected the timezone 'UTC' for now. in C:\wamp\www\laravel\vendor\monolog\monolog\src\Monolog\Logger.php on line 311 Warning: date_default_timezone_get(): Invalid date.timezone value 'Asia/Iran', we selected the timezone 'UTC' for now. in C:\wamp\www\laravel\vendor\monolog\monolog\src\Monolog\Logger.php on line 311 [Symfony\Component\Debug\Exception\FatalThrowableError] Undefined constant 'Morilog\Jalali\JalaliServiceProvider' timezone of php.ini and app.php is UTC . what should I do to fix this bug?

morilog commented 6 years ago

There is no timezone 'Asia/Iran'. you should use 'Asia/Tehran' instead.