diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/moment/src/moment.js | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
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; |