Open koo9 opened 5 months ago
by looking at the code, in https://github.com/moribvndvs/ng2-idle/blob/master/projects/core/src/lib/idleexpiry.ts in this function isExpired(): boolean { const expiry = this.last(); return expiry != null && expiry <= this.now(); }
isExpired(): boolean { const expiry = this.last(); return expiry != null && expiry <= this.now(); }
this.last() is UTC time, this.now is local time, so it's comparing UTC and local time, is it a bug?
by looking at the code, in https://github.com/moribvndvs/ng2-idle/blob/master/projects/core/src/lib/idleexpiry.ts in this function
isExpired(): boolean { const expiry = this.last(); return expiry != null && expiry <= this.now(); }
this.last() is UTC time, this.now is local time, so it's comparing UTC and local time, is it a bug?