diff options
Diffstat (limited to 'node_modules/moment/src/moment.js')
-rw-r--r-- | node_modules/moment/src/moment.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/node_modules/moment/src/moment.js b/node_modules/moment/src/moment.js index 2b78152f0..9516d285d 100644 --- a/node_modules/moment/src/moment.js +++ b/node_modules/moment/src/moment.js @@ -1,12 +1,12 @@ //! moment.js -//! version : 2.19.3 +//! version : 2.22.2 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com import { hooks as moment, setHookCallback } from './lib/utils/hooks'; -moment.version = '2.19.3'; +moment.version = '2.22.2'; import { min, @@ -79,4 +79,17 @@ moment.relativeTimeThreshold = relativeTimeThreshold; moment.calendarFormat = getCalendarFormat; moment.prototype = fn; +// currently HTML5 input type only supports 24-hour formats +moment.HTML5_FMT = { + DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" /> + DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" /> + DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" /> + DATE: 'YYYY-MM-DD', // <input type="date" /> + TIME: 'HH:mm', // <input type="time" /> + TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" /> + TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" /> + WEEK: 'YYYY-[W]WW', // <input type="week" /> + MONTH: 'YYYY-MM' // <input type="month" /> +}; + export default moment; |