A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
simplify date value format
Michael Shamoon7396e4c32666
diff --git a/src-ui/src/app/components/common/input/date/date.component.ts b/src-ui/src/app/components/common/input/date/date.component.tsindex cf475df5e..63a15709b 100644--- a/src-ui/src/app/components/common/input/date/date.component.ts+++ b/src-ui/src/app/components/common/input/date/date.component.ts@@ -53,17 +53,11 @@ export class DateComponent}onSuggestionClick(dateString: string) {- const parsedNgDate = this.ngbDateParserFormatter.parse(dateString)- this.writeValue(this.formatDateAsYYYYMMDD(parsedNgDate))+ const parsedDate = this.ngbDateParserFormatter.parse(dateString)+ this.writeValue(`${parsedDate.year}-${parsedDate.month}-${parsedDate.day}`)this.onChange(this.value)}- formatDateAsYYYYMMDD(date: NgbDateStruct) {- const monthPrefix = date.month > 9 ? '' : '0'- const dayPrefix = date.day > 9 ? '' : '0'- return `${date.year}-${monthPrefix}${date.month}-${dayPrefix}${date.day}`- }-ngOnInit(): void {super.ngOnInit()this.placeholder = this.settings.getLocalizedDateInputFormat()