Skip to content

new Date() instanceof Date returns false on Bangle.js 2, 2v25 #7735

Discussion options

You must be logged in to vote

Just fixed - so 2v26 (when released) will have the fix in, as will any 'Cutting Edge' build. I'd hope to get a release of 2v26 out in the next week or so, so hopefully even if you don't change datetime_picker it'll sort itself out soon.

Just FYI the issue was when using instanceof on an object that had a valueOf method - in that case in 2v25 the instance of the returned value was checked, not the actual object!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gfwilliams
Comment options

Answer selected by lauzonhomeschool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants