instanceof Date
doesn't always catch all Date objects
#2860
Labels
instanceof Date
doesn't always catch all Date objects
#2860
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?
The text was updated successfully, but these errors were encountered: