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
var datetimeLocalWidget = input('datetime-local');
exports.datetimeLocal = function (options) {
var opt = options || {};
var w = datetimeLocalWidget(opt);
w.formatValue = function (value) {
if (!value) {
return null;
}
var date = is.date(value) ? value : new Date(value);
if (isNaN(date.getTime())) {
return null;
}
return date.toISOString().slice(0, 23);
};
return w;
};
The text was updated successfully, but these errors were encountered:
npm install missing the chunk of code below:
The text was updated successfully, but these errors were encountered: