Optimize the fetch millisecond problem
This commit is contained in:
parent
843db9ee76
commit
9f450f4d1b
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue