HowTo: Configure timezone in the Back Office
Edit on GitHubThis document explains how to configure the timezone to display the correct date and time in the Back Office.
To configure the timezone, do the following:
-
Set the config value for the key
\Spryker\Shared\UtilDateTime\UtilDateTimeConstants::DATE_TIME_ZONE
, choosing one of the PHP-supported timezones. -
Update the corresponding config, for example in
config/Shared/config_default.php
:
use Spryker\Shared\UtilDateTime\UtilDateTimeConstants;
$config[UtilDateTimeConstants::DATE_TIME_ZONE] = 'Europe/Berlin';
For the US store, the configuration could be set as follows:
use Spryker\Shared\UtilDateTime\UtilDateTimeConstants;
$config[UtilDateTimeConstants::DATE_TIME_ZONE] = 'America/New_York';
Thank you!
For submitting the form