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

jwt debugger exp time/date display is incorrect #466

Open
bpringe opened this issue May 8, 2020 · 4 comments
Open

jwt debugger exp time/date display is incorrect #466

bpringe opened this issue May 8, 2020 · 4 comments
Assignees

Comments

@bpringe
Copy link

bpringe commented May 8, 2020

image
The hover tooltip shows a date that is about a month behind what it should be, unless I am missing something. When I enter that time into https://www.epochconverter.com/ it shows Thursday, May 7, 2020 6:22:10.874 PM GMT-07:00 DST.

@Spomky
Copy link
Contributor

Spomky commented May 8, 2020

A month behind? What about the year 52320?
It looks like the error comes from the value itself.
Is it in milliseconds?

@Sambego
Copy link
Contributor

Sambego commented May 8, 2020

Hey @bpringe, looks like the value of your exp claim is in milliseconds instead of seconds. The JWT specification specifies NumericDate values as:

A JSON numeric value representing the number of seconds from
1970-01-01T00:00:00Z UTC until the specified UTC date/time,
ignoring leap seconds

More info: https://tools.ietf.org/html/rfc7519#section-2

@Sambego Sambego closed this as completed May 8, 2020
@bpringe
Copy link
Author

bpringe commented May 8, 2020

Wow... definitely missed the year 😄. I should have at least looked at the spec before creating this issue, sorry! Thanks for the quick response and the info.

@DanOnCall DanOnCall self-assigned this Jun 18, 2024
@DanOnCall DanOnCall reopened this Jun 18, 2024
@DanOnCall
Copy link
Contributor

This looks to be a common issue to happen. I'm reopening this issue to add a hint on the next version of jwt.io to help people troubleshoot this quickly :)

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

4 participants