How to set local Time Zone

Help for integrating the Laravel package
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!
xarga
Posts: 43
Joined: 16 Dec 2019, 22:54

How to set local Time Zone

Post by xarga » 02 Jun 2020, 03:32

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?

xarga
Posts: 43
Joined: 16 Dec 2019, 22:54

Re: How to set local Time Zone

Post by xarga » 02 Jun 2020, 21:12

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.

Post Reply