Fix: fix date format for 'today' in DateComponent (#10369)

This commit is contained in:
shamoon 2025-07-11 00:43:52 -07:00 committed by GitHub
parent feb320cae9
commit 924471b59c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ export class DateComponent
@Output()
filterDocuments = new EventEmitter<NgbDateStruct[]>()
public readonly today: string = new Date().toISOString().split('T')[0]
public readonly today: string = new Date().toLocaleDateString('en-CA')
getSuggestions() {
return this.suggestions == null