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

Achievements negative unlock date #29

Closed
turricanLive opened this issue Sep 8, 2013 · 4 comments
Closed

Achievements negative unlock date #29

turricanLive opened this issue Sep 8, 2013 · 4 comments

Comments

@turricanLive
Copy link

Hi, I've noticed that when retrieving a game achievements sometimes the unlock date is a negative number. Example:
https://www.xboxleaders.com/api/2.0/achievements.json?gamertag=Turrican&gameid=1480657549

@djekl
Copy link
Contributor

djekl commented Sep 8, 2013

I recieve the exact same numbers on my api.
https://xboxapi.com/dev/achievements/1480657549/Turrican

It seems that its an achievement unlocked offline. Will need to include that in this one here to help.

@turricanLive
Copy link
Author

Do you know if there a way to derive the actual date from this negative number?

@djekl
Copy link
Contributor

djekl commented Sep 8, 2013

Achievements unlocked offline don't have a date associated with them. I am assuming here but I know a unix timestamp at 0 is 1970, this negative time is probably 000-00-00 00:00:00

@jasonclemons
Copy link
Member

That timestamp translates to Tue, 20 Apr 1948 07:18:00 GMT. I'm sure it's zero hour for the way Microsoft does their timestamps.

I will leave it the way it is now, but I have added an unlockedoffline key to designate achievements unlocked offline.

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

No branches or pull requests

3 participants