grbsk/ng2-idle

idleExpiry compare UTC and local time

Opened this issue · 0 comments

koo9 commented

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?