OFFLINE-GmbH / oc-opening-hours-plugin

:clock3: Manage and display opening hours on your website
MIT License
4 stars 7 forks source link

timezone #10

Open Pixinside opened 2 years ago

Pixinside commented 2 years ago

Hello,

I have an issue with this {{ openingHours.location.openingHours.isOpen() ? "We are open!" : "We will open at " ~ openingHours.location.openingHours.nextOpen(date('now')).format('D at H:i') }}. I have an hour difference with the opening hours. I'm not sure if it's with the plugin or October itself that I have the issue. My October config timezone is set up to "UTC" has advised. But if I change it to "Europe/Amsterdam" it works fine. But I read it's not the best way. Any clues?

thanks! jd

tobias-kuendig commented 2 years ago

Usually, if there is a timezone problem, this is because of the timezone of your backend user is wrong. Go to the backend settings of the user and make sure it has your local timezone set. You should then see the wrong values in the backend where you can fix them.