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..

where should the timezone be set for a Spryker application? in php setting or is there any other con

U011K6DASBW
U011K6DASBW Posts: 37 🧑🏻‍🚀 - Cadet

where should the timezone be set for a Spryker application? in php setting or is there any other configuration in spryker? I found ApplicationConstants::PROJECT_TIMEZONE, but that is not being used anywhere. There is also a timezone config in store specific configurations, but that would not affect places where we are creating DateTime objects.

Comments

  • Stanislav Matveyev
    Stanislav Matveyev Tech Lead @ Spryker Sprykee Posts: 211 🧑🏻‍🚀 - Cadet

    all dates are stored in UTC.

    try to use

    UtilDateTimeConstants::DATE_TIME_ZONE
    

    and use with UtilDateTimeService::formatDateTime($date)