Error while setting time for due/start/end date of a task #1710

Closed
opened 2020-03-08 16:44:20 +00:00 by Zeygon · 3 comments

There seems to be an error when setting a (due|start|end) date on a task. When setting a date in the datetime-picker a red toast pops up with an error message: Invalid time value.

Meanwhile a warning is printed to the console:

chunk-vendors.ca8c8f0a.js:78 Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule
	i @ chunk-vendors.ca8c8f0a.js:78
	a @ chunk-vendors.ca8c8f0a.js:25
	value @ app.2958ff01.js:1
	value @ app.2958ff01.js:1
	(anonymous) @ app.2958ff01.js:1
	Promise.then (async)
	u.request @ chunk-vendors.ca8c8f0a.js:1
	r.forEach.u.<computed> @ chunk-vendors.ca8c8f0a.js:1
	(anonymous) @ chunk-vendors.ca8c8f0a.js:1
	value @ app.2958ff01.js:1
	saveTask @ app.2958ff01.js:1
	ne @ chunk-vendors.ca8c8f0a.js:7
	n @ chunk-vendors.ca8c8f0a.js:7
	ne @ chunk-vendors.ca8c8f0a.js:7
	Tn.t.$emit @ chunk-vendors.ca8c8f0a.js:7
	(anonymous) @ chunk-vendors.ca8c8f0a.js:30
    It @ chunk-vendors.ca8c8f0a.js:53
    ct @ chunk-vendors.ca8c8f0a.js:53
    pt @ chunk-vendors.ca8c8f0a.js:53
	(anonymous) @ chunk-vendors.ca8c8f0a.js:53
    
chunk-vendors.ca8c8f0a.js:78 Error
    at i (chunk-vendors.ca8c8f0a.js:78)
    at a (chunk-vendors.ca8c8f0a.js:25)
    at e.value (app.2958ff01.js:1)
    at e.value (app.2958ff01.js:1)
    at app.2958ff01.js:1

This errors happens on my freshly installed frontend (from docker) and on the demo on https://try.vikunja.io/.

There seems to be an error when setting a (due|start|end) date on a task. When setting a date in the datetime-picker a red toast pops up with an error message: *Invalid time value*. Meanwhile a warning is printed to the console: ``` chunk-vendors.ca8c8f0a.js:78 Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule i @ chunk-vendors.ca8c8f0a.js:78 a @ chunk-vendors.ca8c8f0a.js:25 value @ app.2958ff01.js:1 value @ app.2958ff01.js:1 (anonymous) @ app.2958ff01.js:1 Promise.then (async) u.request @ chunk-vendors.ca8c8f0a.js:1 r.forEach.u.<computed> @ chunk-vendors.ca8c8f0a.js:1 (anonymous) @ chunk-vendors.ca8c8f0a.js:1 value @ app.2958ff01.js:1 saveTask @ app.2958ff01.js:1 ne @ chunk-vendors.ca8c8f0a.js:7 n @ chunk-vendors.ca8c8f0a.js:7 ne @ chunk-vendors.ca8c8f0a.js:7 Tn.t.$emit @ chunk-vendors.ca8c8f0a.js:7 (anonymous) @ chunk-vendors.ca8c8f0a.js:30 It @ chunk-vendors.ca8c8f0a.js:53 ct @ chunk-vendors.ca8c8f0a.js:53 pt @ chunk-vendors.ca8c8f0a.js:53 (anonymous) @ chunk-vendors.ca8c8f0a.js:53 chunk-vendors.ca8c8f0a.js:78 Error at i (chunk-vendors.ca8c8f0a.js:78) at a (chunk-vendors.ca8c8f0a.js:25) at e.value (app.2958ff01.js:1) at e.value (app.2958ff01.js:1) at app.2958ff01.js:1 ``` This errors happens on my freshly installed frontend (from docker) and on the demo on `https://try.vikunja.io/`.
Owner

Can confirm, I'll take a look.

Can confirm, I'll take a look.
Owner

Should be fixed in a706089f7b, please test again with the lastest version (takes about 3min until a new build is available).

Should be fixed in https://kolaente.dev/vikunja/frontend/commit/a706089f7bb7f0c5c0757dd0662b879cee22afc8, please test again with the lastest version (takes about 3min until a new build is available).
Owner

Thank you for the report!

Thank you for the report!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1710
No description provided.