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()} )}