From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:46:20 +0000 (-0700) Subject: Fix: also fix frontend date format in other places X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fpaperless-ngx.git Fix: also fix frontend date format in other places See #10369 --- diff --git a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts index e3f7153b4..ef56d6ac5 100644 --- a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts +++ b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts @@ -246,7 +246,7 @@ export class CustomFieldsQueryDropdownComponent extends LoadingComponentWithPerm customFields: CustomField[] = [] - public readonly today: string = new Date().toISOString().split('T')[0] + public readonly today: string = new Date().toLocaleDateString('en-CA') constructor() { super() diff --git a/src-ui/src/app/components/common/dates-dropdown/dates-dropdown.component.ts b/src-ui/src/app/components/common/dates-dropdown/dates-dropdown.component.ts index 20683a2d1..501b43fab 100644 --- a/src-ui/src/app/components/common/dates-dropdown/dates-dropdown.component.ts +++ b/src-ui/src/app/components/common/dates-dropdown/dates-dropdown.component.ts @@ -165,7 +165,7 @@ export class DatesDropdownComponent implements OnInit, OnDestroy { @Input() 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 { return (