How to set local Time Zone
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How to set local Time Zone
Aimeos 2019.10
Laravel 6
Linux/Centos
My server time zone is Eastern Standard Time (New York)
And my Aimeos Installation is time-zone localized through it's php.ini file with date.timezone ="America/Los_Angeles"
However, an order placed at 8pm on June 1st appears in the database as placed at 3:00am June 2nd which is causing problems with reporting.
I'm surprised that for an internationalized system I can't find any reference to time zone in the documentation nor a setting in the Locale/Site section nor in shop.php
How do I go about setting the time correct zone?
Laravel 6
Linux/Centos
My server time zone is Eastern Standard Time (New York)
And my Aimeos Installation is time-zone localized through it's php.ini file with date.timezone ="America/Los_Angeles"
However, an order placed at 8pm on June 1st appears in the database as placed at 3:00am June 2nd which is causing problems with reporting.
I'm surprised that for an internationalized system I can't find any reference to time zone in the documentation nor a setting in the Locale/Site section nor in shop.php
How do I go about setting the time correct zone?
Re: How to set local Time Zone
Resolved:
I see that it was specifically set inside config/app.php which overrides the PHP setting
I've changed it from
'timezone' => 'UTC',
to
'timezone' => 'America/Los_Angeles',
and cleared and re-cached config and it's set as we need it.
I see that it was specifically set inside config/app.php which overrides the PHP setting
I've changed it from
'timezone' => 'UTC',
to
'timezone' => 'America/Los_Angeles',
and cleared and re-cached config and it's set as we need it.