Florian Moser
Florian Moser
The reference is UTC, but as a WordPress user you set your own timezone under "Settings" => "General". So one would expect that the date/time he enters for "Irregular Openings"...
By the way, `Period` behaves correctly in the exact same situation: ````php $openingHours = OpeningHours::getInstance(); $set = $openingHours->getSet('my-set'); $now = new \DateTime('2017-09-11 14:09:00', new \DateTimeZone('Europe/Zurich')); var_dump($now); $data = $set->getDataForDate($now); foreach...
> Ok so you have set the values 01:10 and 12:10 in the interface, I thought it has already been converted in the dump. I should have mentioned that, yes...
> Have you come across this problem while using one of the Widgets / Shortcodes or while using the PHP API? API only. But as I mentioned above, Period and...
I was very confused too, when I saw this the first time (still am).