Skip to content

instanceof Date doesn't always catch all Date objects  #2860

Open
@Srayman

Description

@Srayman

We have a Rust library creating Date objects so they are not an instance of Date but are a valid Date object.

Using util.types.isDate validates that the object is a Date and is what we're using in our local project.

We ran into an issue when saving a TIMESTAMP with this Date object where the timezone was not being handled correctly.

What's the best way to handle this scenario?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions