From d362a71c649c1c08582c6f93af374bba83a8bcc7 Mon Sep 17 00:00:00 2001 From: Jason Sylvestre Date: Thu, 6 Mar 2025 13:52:32 -0800 Subject: [PATCH] format expects a date, not a string --- Keas.Mvc/ClientApp/src/util/dates.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Keas.Mvc/ClientApp/src/util/dates.ts b/Keas.Mvc/ClientApp/src/util/dates.ts index 842604dd0..066d0c058 100644 --- a/Keas.Mvc/ClientApp/src/util/dates.ts +++ b/Keas.Mvc/ClientApp/src/util/dates.ts @@ -21,9 +21,11 @@ export class DateUtil { } return format( - new Date(str).toLocaleString('en-US', { - timeZone: 'America/Los_Angeles' - }), + new Date( + new Date(str).toLocaleString('en-US', { + timeZone: 'America/Los_Angeles' + }) + ), 'MM/dd/yyyy' ); }