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
SerializeableType#serialize calls moment(rawValue).toDate(). If rawValue is already a data, under certain versions of moment.js (tested with 1.7.0), moment does not create a new Date object.
Any modifications done to the date are reflected in the original date value as well. Example on JSFiddle.
The simplest fix is to simply wrap the call in:
newDate(<date>);
The text was updated successfully, but these errors were encountered:
SerializeableType#serialize calls moment(rawValue).toDate(). If rawValue is already a data, under certain versions of moment.js (tested with 1.7.0), moment does not create a new Date object.
Any modifications done to the date are reflected in the original date value as well. Example on JSFiddle.
The simplest fix is to simply wrap the call in:
The text was updated successfully, but these errors were encountered: