Merge pull request #15 from lzf971107/patch-1
Optimize the fetch millisecond problem
This commit is contained in:
commit
2ec4862cc3
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue