Skip to content

finished event is not correct,early 2 seconds #10

@xuhuan

Description

@xuhuan

finished event is not correct,early 2 seconds.
This problem is caused because the following code
secondsLeft = Math.floor((toDate.valueOf() - currentDate.valueOf()) / 1000);

Should be modified to the following code

secondsLeft = Math.ceil((toDate.valueOf() - currentDate.valueOf()) / 1000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions