new Date() instanceof Date returns false on Bangle.js 2, 2v25 #7735
-
Hi, on Bangle.js 2, firmware 2v25, This breaks the initial/selected value in apps/datetime_picker/lib.js e.g. calling the following now ignores the passed datetime:
I have a potential workaround, so not a big deal if this feature is not added back. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the report - I can confirm this returns |
Beta Was this translation helpful? Give feedback.
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 avalueOf
method - in that case in 2v25 the instance of the returned value was checked, not the actual object!