You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many modern systems have switched to using the java.time API that was introduced in Java 8. I believe that for maximum compatibility with newly created applications, it would be good to support this API alongside the current java.util.Date usages.
For example, in JWTCreator and JWTCreator.Builder, when dealing with expiration, the logical new API way would be to use a java.time.Instant. That way, you could easily write the following:
It's not that it's impossible to do that with older Date and Calendar implementations, it's just that those classes are outdated (this article from 2017 talks about that), and it would be nice to use the same time API that other parts of most newly created applications are already using.
Activity
tradeJmark commentedon May 13, 2020
I'm sorry, I neglected to browse through the closed issues long enough to find out this is already coming in version 4.