n.budgetDate.getFullYear is not a function
Bug report
Weboob's version I am using is: master - e4595e2f44e14cb7160d7b97cf2ac544adba63ce
Kresus's version I am using is: latest master - a12ccdd9
Steps to reproduce: Fresh installation with docker from guide https://kresus.org/install-docker.html, import OFX and crash.
What I expect: No crash
What I observe: crash
Client logs :
TypeError: n.budgetDate.getFullYear is not a function REACT INFO: in d in t in t in div in main in t in t in t in t in d in t in t in d in t in t
Server logs :
sudo docker logs kresus
[...]
[ENTRYPOINT] Changing rights...
chown: cannot access '/usr/local/lib/node_modules/kresus': No such file or directory
(no kresus found in /usr/local/lib)
[ENTRYPOINT] Running kresus as user.
[...]
[2020-02-11T21:03:47.277] [INFO] controllers/all - Parsing OFX file...
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: 20200210120000, _f: undefined, _strict: undefined, _locale: [object Object]
Error
at Function.createFromInputFallback (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:320:98)
at configFromString (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:2385:15)
at configFromInput (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:2611:13)
at prepareConfig (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:2594:13)
at createFromConfig (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:2561:44)
at createLocalOrUTC (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:2648:16)
at createLocal (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:2652:16)
at hooks (/home/user/app/node_modules/kresus/node_modules/moment/moment.js:12:29)
at transactions.concat.accountTransactions.map.transaction (/home/user/app/node_modules/kresus/build/server/controllers/v1/ofx.js:124:39)
at Array.map (<anonymous>)
[2020-02-11T21:03:47.394] [INFO] controllers/all - Importing:
accesses: 1
accounts: 1
alerts: 0
budgets: 0
categories: 0
operation-types: 0
settings: 0
operations: 704
[2020-02-11T21:03:47.394] [INFO] controllers/all - Import accesses...
[...]
[2020-02-11T21:03:56.155] [INFO] models/migrations - Removing theme setting from the database (now stored locally).
[2020-02-11T21:03:56.160] [INFO] controllers/all - Done.
[2020-02-11T21:03:56.160] [INFO] controllers/all - Import finished with success!
[2020-02-11T21:03:56.160] [INFO] HTTP - POST /api/v1/all/import/ofx - 200 (8905 ms)
[2020-02-11T21:03:56.167] [INFO] HTTP - GET /themes.json - 200 (1 ms)
[2020-02-11T21:03:56.242] [INFO] HTTP - GET /api/v1/all/ - 200 (77 ms)