Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi, in Zed Backend at /maintenance/zed-config there is a PHP Config Key "PROJECT_TIMEZONE". But this

Options
U01LLUGR1F0
U01LLUGR1F0 Posts: 60 🧑🏻‍🚀 - Cadet
edited November 2021 in Help

Hi,
in Zed Backend at /maintenance/zed-config there is a PHP Config Key "PROJECT_TIMEZONE".
But this is marked as deprecated without replacement:

Spryker\Shared\Application\ApplicationConstants

/**
 * Global timezone used to for underlying data, timezones for presentation layer can be changed in stores configuration
 *
 * @deprecated Will be removed without replacement.
 *
 * @api
 */
public const PROJECT_TIMEZONE = 'PROJECT_TIMEZONE';

What am I supposed to use instead?

Background: The queries for the sales statistic dashboard don't translate to our local time zone (while order reference date and order times are correct in our timezone).

Comments

  • U02060P4FSQ
    U02060P4FSQ Posts: 5 🧑🏻‍🚀 - Cadet
    Options

    Timezone defined per store here config/Shared/stores.php , but I don’t know whether statistics queries you’ve mentioned are using it

  • U01LLUGR1F0
    U01LLUGR1F0 Posts: 60 🧑🏻‍🚀 - Cadet
    Options

    That is the local timezone like Europe/Berlin. Not the timezone used in the database, which is UTC.
    I needed to find the latter to be able to convert in my query.