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 verifyTime not working with local time #194

Merged
merged 2 commits into from
Jul 25, 2018
Merged

Conversation

fabianloewe
Copy link
Contributor

The notBefore and notOnOrAfter are UTC while now is the local date. This way the comparison can not work.
The added variables should fix this.

(ref: https://praveenlobo.com/blog/how-to-convert-javascript-local-date-to-utc-and-utc-to-local-date/)

The `notBefore` and `notOnOrAfterLocal` are UTC while `now` is the local date. This way the comparison can not work.
The added variables should fix this.

(ref: https://praveenlobo.com/blog/how-to-convert-javascript-local-date-to-utc-and-utc-to-local-date/)
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 89.75% when pulling b601843 on hyronx:patch-1 into 766a290 on tngan:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 89.75% when pulling b601843 on hyronx:patch-1 into 766a290 on tngan:master.

@tngan tngan merged commit 031cafd into tngan:master Jul 25, 2018
@tngan
Copy link
Owner

tngan commented Jul 25, 2018

@hyronx Thanks for your quick fix. I would rather like to refactor it later on to avoid so many transformations in that function.

@fabianloewe
Copy link
Contributor Author

No problem, it really is quite quick and dirty.

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

Successfully merging this pull request may close these issues.

3 participants