-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hi ! I have a weird bug that I think can be fixed in code, but I'm not sure where.
Recently we're switching to Magento Cloud and we had a problem with our timezones.
On our current server, we're on UCT+02:00 (Paris) and the Ingenico user is as well.
On our Magento configuration, we set the locale to Paris too.
But on our Cloud we're on UTC (and we can't really change it).
I noticed that if I switch the Ingenico user Timezone, everything works well, which makes me think that maybe a date is sent to Ingenico when creating a request that does not use the "Magento\Framework\Stdlib\DateTime\TimezoneInterface" class to create a DateTime at the correct timezone.
I tried searching on Ingenico code for Magento 2, but I think everything related to dates are in "ogone-client" and "ogone-sdk-php" packages, so they should not have links to Magento classes.
Do you have an idea how I can resolve this issue ? I guess we can change Ingenico user timezone, but then our admins will have to remember to make the date conversion in their head... which I'm not confident they can always do :)
Hope this is clear enough!