-
Notifications
You must be signed in to change notification settings - Fork 11k
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
PHP Notice: date_default_timezone_set(): Timezone ID '' is invalid #8102
Comments
'timezone' => 'UTC', |
@overtrue i did set in config/app.php and .env file APP_TIMEZONE=Asia/Kuala_Lumpur |
dd(env('APP_TIMEZONE')) ? |
@overtrue it shows Asia/Kuala_Lumpur, the error is only happen when there is a huge spike on traffic. |
try add a default value: 'timezone' => env('APP_TIMEZONE', 'Asia/Kuala_Lumpur'), |
This is often seen when you have subdir(s) with the same file names under |
@overtrue it works fine, but without the default value will prompt error if there is huge spike of traffic. |
@phanan: there is no same file names under |
Hmm... Try logging |
Probably need more detail, version used, opcache (could cause issue) or even might be related to #7354 |
@crynobone Yes, this is related to #7354 due to PHP thread-safe i guess. |
There isn't any workable solution right now, #7425 was merged but later reverted due to regression bug 866a8cf#commitcomment-9767647 |
Please check your php.ini date.timezone directive |
I'm getting this on a windows machine:
|
date_default_timezone_set('UTC') |
How do we know which one of the 20 suggested answers is the correct one??? |
By using function timezone_identifiers_list(); will confirm the timezone supported in php use this if(!in_array('your timezone', $zoneList)) { set default timezone here } |
i did same but still fatal error |
Any solution about this issue? |
? |
1 similar comment
? |
PHP Notice: date_default_timezone_set(): Timezone ID 'Europe/London # you should change this to your timezone' is invalid in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 49 |
@taylorotwell i am getting this error, please rectify.
The text was updated successfully, but these errors were encountered: