Wrong Timezone for Datetime Deserializer
Problem description:
When the library deserialises the DateTimes to DateTime-Objects it uses the local Timezone of the Server. But times ending with Z are UTC timezone. So the DateTime object had the numeric value of the UTC from Amazon but had set the timezone to e.g. Europe/Berlin because of the server default.
Proposed fix in PR https://github.com/jlevers/selling-partner-api/pull/746
Json Response: ,"FeesEstimate": { "TimeOfFeesEstimation": "2024-06-26T11:09:40.000Z"
current behaviour:
+timeOfFeesEstimation: DateTime @1719392627 {#3539 ▼ date: 2024-06-26 11:03:47.0 Europe/Berlin (+02:00) }
Huh, I'm not seeing this behavior – my dates deserialize into UTC by default:
But I guess there isn't any harm in making sure that it's the right timezone...I'll respond to the PR with a couple comments :)
Fixed in v7.0.4.