magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.45k stars 9.29k forks source link

Wrong order created and updated date in rest api response? #28181

Closed ldc321 closed 3 years ago

ldc321 commented 4 years ago

Preconditions (*)

  1. magento 2.3.4 php 7.2 2.mysql time_zone system_time_zone EDT time_zone SYSTEM 3.magento2 time_zone="America/New_York"

Steps to reproduce (*)

I am fetching the orders using Magento 2 REST api services.(Other apis have the same problem)

In mysql : "created_at": "2020-05-11 3:34:00"

In admin panel orders pages is "2020-05-11 3:34:00"

But the data returned by the API is "2020-05-11 07:34:00"

I don't know why? The correct value would be "2020-05-11 08:34:00"

Can someone help me here to get the created time in correct timezone?

Current London time(British Summer Time): 08:34:00 Current New York time(EDT): 03:34:00

Expected result (*)

  1. I want the right time,such as "created_at":"2020-05-11 08:34:00"

Actual result (*)

1.Get the wrong data : "created_at":"2020-05-11 07:34:00", Current London time is "2020-05-11 08:34:00" 2.

m2-assistant[bot] commented 4 years ago

Hi @ldc321. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@ldc321 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!