Optimize the fetch millisecond problem

This commit is contained in:
withthewind 2019-12-16 10:18:38 +08:00
parent 843db9ee76
commit 9f450f4d1b
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public final class SimpleTokenData implements Serializable, TokenData {
@Override @Override
public boolean isValid() { public boolean isValid() {
return (new Date().getTime())<validBefore.getTime(); return (System.currentTimeMillis())<validBefore.getTime();
} }
} }