Skip to content

idleExpiry compare UTC and local time #198

@koo9

Description

@koo9

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions