Merge pull request #15 from lzf971107/patch-1

Optimize the fetch millisecond problem
This commit is contained in:
Martin 2019-12-21 00:06:28 +01:00 committed by GitHub
commit 2ec4862cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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