Skip to content
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

fixed parsing the timezone when reading API response #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ralfschiffert
Copy link
Contributor

We parse the timezone in the API response wrong. This is before the fix when I query any resource like people/me
people/me

API response
"created": "2017-10-26T23:11:32.021Z",
"lastActivity": "2019-02-22T19:03:25.661Z",
"status": "inactive",

SDK response
created: Thu Oct 26 23:11:32 PDT 2017
lastActivity: Fri Feb 22 19:03:25 PST 2019

This is after the fix with the correct translation of Zulu time to local time
Thu Oct 26 16:11:32 PDT 2017
Fri Feb 22 11:03:25 PST 2019

@jbenyovs
Copy link

jbenyovs commented Nov 1, 2019

Ralf, since you created this Pull Request we released a contributing guide. In order for us to properly merge this pull request, it must meet the standards of the guide. Can you please adjust the git commit message[s] to match the requirements of the guide. We would at least need a header and a body for the commit.

type(scope): subject

body

Thanks

Copy link

@jbenyovs jbenyovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, other than the commit changes detailed above.

@jhj
Copy link

jhj commented Apr 29, 2022

@jbenyovs it doesn't look like the original PR submitter will be replying back. Would you be able to fix this bug out of band?

It seems strange that a 3 character fix has been blocked for 3 years because the submitter went away.

Without this simple fix the timestamps (e.g., last activity) are consistently off by several hours unless you happen to live in GMT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants