cd88 / taker

goal: capture user events (js/mongo) and review with time-scrubbing video playback
0 stars 0 forks source link

Data Validation #13

Open nw opened 6 years ago

nw commented 6 years ago

Looks like dates aren't handled properly or I have the wrong versions.

Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 01/09/2018 03:42:15:177, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/nw/test/giver/node_modules/moment/moment.js:324:94)
    at configFromString (/nw/test/giver/node_modules/moment/moment.js:2366:11)
    at configFromInput (/nw/test/giver/node_modules/moment/moment.js:2592:9)
    at prepareConfig (/nw/test/giver/node_modules/moment/moment.js:2575:9)
    at createFromConfig (/nw/test/giver/node_modules/moment/moment.js:2542:40)
    at createLocalOrUTC (/nw/test/giver/node_modules/moment/moment.js:2629:12)
    at createLocal (/nw/test/giver/node_modules/moment/moment.js:2633:12)
    at hooks (/nw/test/giver/node_modules/moment/moment.js:16:25)
    at calculateEventTiming (/nw/test/giver/app.js:98:38)
    at userData.then (/nw/test/giver/app.js:90:39)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: moment(...).clone(...).toValue is not a function
(node:1430) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.