Quick Add Magick: Support localized date formats #1825

Open
opened 2021-09-16 04:15:15 +00:00 by saibotk · 4 comments

Currently the Quick Add Magic feature only recognizes english dates and it would be cool, if the feature adapts to the locale of the user.

Currently the Quick Add Magic feature only recognizes english dates and it would be cool, if the feature adapts to the locale of the user.
konrad added the
kind/feature
label 2021-09-21 19:38:44 +00:00

That would be nice. I can currently see a wrong suggestion in the "Qucik Add Magic"-Section. "17/02/2021" doesn't work, but 02/17/2021 does.

That would be nice. I can currently see a wrong suggestion in the "Qucik Add Magic"-Section. "17/02/2021" doesn't work, but 02/17/2021 does.

I think the easiest solution would be a custom regex user-setting with support for 2-3 capture-groups in /src/helpers/time/parseDate.ts (getDateFromText)

I think the easiest solution would be a custom regex user-setting with support for 2-3 capture-groups in /src/helpers/time/parseDate.ts (getDateFromText)
Owner

@tamaskan You mean the user would be required to enter the appropriate regex manually in the settings? I don't think that's great UX.

@tamaskan You mean the user would be required to enter the appropriate regex manually in the settings? I don't think that's great UX.
Member
See: https://community.vikunja.io/t/autocomplete-with-quick-add-magic/456/9
Sign in to join this conversation.
No Milestone
No Assignees
4 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#1825
No description provided.