Compare commits

...

2 Commits

Author SHA1 Message Date
shamoon
fa496dfc8d
Fix: also fix frontend date format in other places
See #10369
2025-07-11 00:46:20 -07:00
shamoon
924471b59c
Fix: fix date format for 'today' in DateComponent (#10369) 2025-07-11 00:43:52 -07:00
3 changed files with 3 additions and 3 deletions

View File

@ -246,7 +246,7 @@ export class CustomFieldsQueryDropdownComponent extends LoadingComponentWithPerm
customFields: CustomField[] = [] customFields: CustomField[] = []
public readonly today: string = new Date().toISOString().split('T')[0] public readonly today: string = new Date().toLocaleDateString('en-CA')
constructor() { constructor() {
super() super()

View File

@ -165,7 +165,7 @@ export class DatesDropdownComponent implements OnInit, OnDestroy {
@Input() @Input()
placement: string = 'bottom-start' placement: string = 'bottom-start'
public readonly today: string = new Date().toISOString().split('T')[0] public readonly today: string = new Date().toLocaleDateString('en-CA')
get isActive(): boolean { get isActive(): boolean {
return ( return (

View File

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