Use `moment.isMoment` check instead of instanceof
SpaceK33z opened this issue · comments
Kees Kluskens commented
toBackend()
checks if an attribute cast to a date/datetime is a moment, but it uses instanceof. It should use moment.isMoment
so you can use other variants of moment (e.g. with locales).
Kees Kluskens commented