coopTilleuls / CoopTilleulsSyliusClickNCollectPlugin

Sell and deliver securely during the COVID-19 pandemic!
https://click-n-collect.shop
GNU Affero General Public License v3.0
78 stars 34 forks source link

Timezones guys… It's hell. #51

Open jacquesbh opened 4 years ago

jacquesbh commented 4 years ago

Description

Could you use UTC everywhere in your code but in UI?

Everything which is shown to the customer or the merchant has to be in current Timezone.

We went from CEST to CET in France, and because of that customer had a chance to get 1 hour early their products. Which was leading to some frustration because the shop was closed.

My suggestion: select a IANA identification for a location.

How to reproduce

Possible Solution

My suggestion: select a IANA identification for a location.

This way you can display the fullCalendar (front AND admin) easily with the correct timezone and you can handle everything in PHP using UTC. And you can display the correct time in the order view in admin as well.