danlg / lgen

lgen
MIT License
2 stars 1 forks source link

[Admin] [Absence] *** Cannot load absence file #397

Open danlg opened 8 years ago

danlg commented 8 years ago

Cannot load absence file

W20160518-12:36:02.641(8)? (STDERR) Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.
W20160518-12:36:02.642(8)? (STDERR) Arguments: [object Object]
W20160518-12:36:02.642(8)? (STDERR) Error
W20160518-12:36:02.642(8)? (STDERR)     at Function.createFromInputFallback (packages/momentjs_moment/moment.js:271:1)
W20160518-12:36:02.642(8)? (STDERR)     at configFromString (packages/momentjs_moment/moment.js:1169:1)
W20160518-12:36:02.642(8)? (STDERR)     at configFromInput (packages/momentjs_moment/moment.js:1675:1)
W20160518-12:36:02.642(8)? (STDERR)     at prepareConfig (packages/momentjs_moment/moment.js:1658:1)
W20160518-12:36:02.642(8)? (STDERR)     at createFromConfig (packages/momentjs_moment/moment.js:1625:1)
W20160518-12:36:02.642(8)? (STDERR)     at createLocalOrUTC (packages/momentjs_moment/moment.js:1707:1)
W20160518-12:36:02.643(8)? (STDERR)     at local__createLocal (packages/momentjs_moment/moment.js:1711:1)
W20160518-12:36:02.643(8)? (STDERR)     at utils_hooks__hooks (packages/momentjs_moment/moment.js:16:1)
W20160518-12:36:02.643(8)? (STDERR)     at convertAttendenceFormat (packages/smartix:absence/server/actual/actual.js:18:22)
W20160518-12:36:02.643(8)? (STDERR)     at packages/smartix:absence/server/actual/actual.js:83:35
I20160518-12:36:02.646(8)? { studentId: 'xXAX4dkZPJZbrCBbc',
I20160518-12:36:02.646(8)?   date: '14-04-2016',
I20160518-12:36:02.647(8)?   clockIn: null,
I20160518-12:36:02.647(8)?   namespace: '9h7b3LDWASfY8dWWg' }
I20160518-12:36:02.650(8)? { studentId: 'nxuJaxEXKPDuWrBjZ',
I20160518-12:36:02.650(8)?   date: '14-04-2016',
I20160518-12:36:02.650(8)?   clockIn: null,
I20160518-12:36:02.650(8)?   namespace: '9h7b3LDWASfY8dWWg' }
I20160518-12:36:02.658(8)? { studentId: 'NKeATR5sPp2p3cBLK',
I20160518-12:36:02.659(8)?   date: '19-05-2016',
I20160518-12:36:02.659(8)?   clockIn: 488,
I20160518-12:36:02.659(8)?   namespace: '9h7b3LDWASfY8dWWg' }
I20160518-12:36:02.769(8)? dateString: 18-05-2016
I20160518-12:36:02.771(8)? true
I20160518-12:36:02.773(8)? schoolStartTimeM: 480
I20160518-12:36:02.774(8)? minutesSinceMidnight: 756
brewhk-dev commented 8 years ago

Absence file is loaded. The warning is a deprecation warning and not an error, and will not stop the code from working properly.