]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commit
Parse dates when entered without separators 250/head
authorViktor <viktor@fermentationculture.eu>
Thu, 10 Mar 2022 20:31:54 +0000 (21:31 +0100)
committerViktor <viktor@fermentationculture.eu>
Thu, 10 Mar 2022 20:31:54 +0000 (21:31 +0100)
commit52f0a3dfb9eb6bfbc2fd550c4fee530b3482bd12
treed8974af660249055cefe9bb8ae9f050f51e4bc20
parent081f11af404ce85478ba38ccfa924dc411be25a7
Parse dates when entered without separators

This adds date dividers if none are entered.
It also adds the current year if it wasn't entered.

This allows users to just enter 1003, 100322, 10032022 and
have it expanded to 10.03.2022, in the case of the German format.
(All other formats are also supported)

It also replaces commas with the date divider.
This allows quick entry of the date on the numpad.
src-ui/src/app/utils/ngb-date-parser-formatter.ts