Skip to content

Why timestamps can't be negative #6

@alfaproject

Description

@alfaproject

if (v < 0 || isNaN(v)) {

The original libraries where this was forked from suffer from the same issue. For some reason they have a negative check on the timestamp conversion but timestamps can obviously be negative. Any date before 1970 is going to be negative and that's fine.

Any particular reason why this hasn't been fixed anyone in so many years? Just curious o:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions