-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Fedex tracking error #8220
Fix Fedex tracking error #8220
Conversation
@@ -1571,7 +1571,7 @@ private function processTrackingDetails(\stdClass $trackInfo) | |||
]; | |||
|
|||
if (!empty($trackInfo->ShipTimestamp)) { | |||
$datetime = \DateTime::createFromFormat(\DateTime::ISO8601, $trackInfo->ShipTimestamp); | |||
$datetime = \DateTime::createFromFormat('U', strtotime($trackInfo->ShipTimestamp)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to FedEx API docs, date time should be with time zone, but sometimes API returns it without timezone. This fix is incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix accounts for all possibilities, time zone or otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a timezone is not specified, the time will be parsed according to configured timezone for Magento store, but I think it's more correctly to parse time in that case with UTC timezone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for clarifying - i'll make that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to do any changes because this issue already fixed by Magento team and will be delivered soon. Anyway, thanks for fix and your time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPD FedEx support has confirmed, if date time doesn't contain timezone, when date time in UTC.
Rejecting your PR because this issue fixed in the scope of internal ticket MAGETWO-63215. |
Great, so when will that be merged? |
This issue fixed and now all flow for tracking numbers should be covered by functional tests. As soon as functional tests will be finished, this fix will be merged. |
Mftf test cleanup and tag cloud group
closes #8219
Preconditions
Steps to reproduce