From bda2ab7d3231e06115adf32bfd7d2d8b356f0529 Mon Sep 17 00:00:00 2001 From: Richard Dinh Date: Fri, 18 Oct 2024 13:40:29 -0700 Subject: [PATCH] update date model, correct time zone --- src/utils/formatDate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/formatDate.js b/src/utils/formatDate.js index e4fe8123..ad25e7d1 100644 --- a/src/utils/formatDate.js +++ b/src/utils/formatDate.js @@ -21,7 +21,7 @@ export const formatDate = (uglyDate) => { }; export const formatDisplayDate = (dateString) => { - return dayjs(new Date(dateString)).format('M/D/YYYY'); + return dayjs(new Date(dateString)).utc().format('M/D/YYYY'); }; /** * adjusting dates coming from the charts so the dates are correct