Skip to content

Date.getMilliseconds() / 1000 is wrong to get unix timestamp. #2

Closed
@imanro

Description

@imanro

You need to used Date.getTime() / 1000 instead, cause getMilliseconds() just returns milliseconds part of date, not absolute unixstamp value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions