From e50c76090c7e358d93523295c424513097d7c44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Demenech?= Date: Thu, 1 Jun 2023 15:39:15 -0300 Subject: [PATCH] [examples/openspending][xs]: make year be displayed in UUTC timezone on DatasetCard --- examples/openspending/components/DatasetCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/openspending/components/DatasetCard.tsx b/examples/openspending/components/DatasetCard.tsx index 5af7c0c3..fd985e8a 100644 --- a/examples/openspending/components/DatasetCard.tsx +++ b/examples/openspending/components/DatasetCard.tsx @@ -45,12 +45,12 @@ export default function DatasetCard({ dataset }: { dataset: Project }) {
Fiscal Period
{dataset.fiscalPeriod?.start && - new Date(dataset.fiscalPeriod.start).getFullYear()} + new Date(dataset.fiscalPeriod.start).getUTCFullYear()} {dataset.fiscalPeriod?.end && dataset.fiscalPeriod?.start !== dataset.fiscalPeriod?.end && ( <> {' - '} - {new Date(dataset.fiscalPeriod.end).getFullYear()} + {new Date(dataset.fiscalPeriod.end).getUTCFullYear()} )}