Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated moment date parsing #136

Open
ghost opened this issue Apr 8, 2018 · 0 comments
Open

Fix deprecated moment date parsing #136

ghost opened this issue Apr 8, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 8, 2018

The current use of moment constructor uses a deprecated form in some cases.

Sample error:

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: 04-08-2018, _f: undefined, _strict: undefined, _locale: [object Object]
Error
at Function.createFromInputFallback (/app/node_modules/moment/moment.js:320:94)
at configFromString (/app/node_modules/moment/moment.js:2368:11)
at configFromInput (/app/node_modules/moment/moment.js:2594:9)
at prepareConfig (/app/node_modules/moment/moment.js:2577:9)
at createFromConfig (/app/node_modules/moment/moment.js:2544:40)
at createLocalOrUTC (/app/node_modules/moment/moment.js:2631:12)
at createLocal (/app/node_modules/moment/moment.js:2635:12)
at hooks (/app/node_modules/moment/moment.js:12:25)
at /app/server.js:353:26
at /app/lib.js:1453:9
at handleCallback (/app/node_modules/mongodb/lib/utils.js:96:12)
at /app/node_modules/mongodb/lib/cursor.js:833:16
at handleCallback (/app/node_modules/mongodb-core/lib/cursor.js:244:5)
at setCursorDeadAndNotified (/app/node_modules/mongodb-core/lib/cursor.js:548:3)
at nextFunction (/app/node_modules/mongodb-core/lib/cursor.js:722:7)
at Cursor.next [as _next] (/app/node_modules/mongodb-core/lib/cursor.js:753:3)
@ghost ghost self-assigned this Apr 8, 2018
@ghost ghost added this to Triage in Maintenance Apr 8, 2018
@ghost ghost moved this from Triage to Todo / Confirmed in Maintenance May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Maintenance
Todo / Confirmed
Development

No branches or pull requests

0 participants