You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For others facing this issue: a workaround for now, is to use setValue with a timestamp $element.datetimepicker('setValue', timestamp), that way we trick datetimepicker to create a Date object itself (see: Line 213)
Just ran into a bug caused by the partial Moment support. Setting a (default) value doesn't work anymore.
https://github.com/Eonasdan/bootstrap-datetimepicker/blob/master/src/js/bootstrap-datetimepicker.js#L216
On that line it asumes this._date is a Date object, while it actually is a Moment object. Causing the getUTCFullYear to fail.
Sadly I don't have enough mocha/coffeescript knowledge (and not enough time to learn) to write a test for it.
Edit: forgot to mention (although maybe obvious), this bug occurs when Moment IS available.
The text was updated successfully, but these errors were encountered: