Skip to content

Expired delay to pay when server and Ingenico user not on same timezone #39

@vincent-jacq

Description

@vincent-jacq

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions