From d105b97d75ad066051278818bcfad5835089e4e7 Mon Sep 17 00:00:00 2001 From: Ashot Nazaryan Date: Wed, 31 Jul 2024 02:23:26 -0700 Subject: [PATCH] fix: propertyType date should not convert to local timezone --- src/frontend/components/property-type/datetime/map-value.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/components/property-type/datetime/map-value.ts b/src/frontend/components/property-type/datetime/map-value.ts index 5dce7b20f..c3afe747e 100644 --- a/src/frontend/components/property-type/datetime/map-value.ts +++ b/src/frontend/components/property-type/datetime/map-value.ts @@ -6,7 +6,7 @@ export default (value: Date, propertyType: PropertyType): string => { if (!value) { return '' } - const date = new Date(value) + const date = propertyType === 'date' ? new Date(`${value}T00:00:00`) : new Date(value) if (date) { return formatDateProperty(date, propertyType) }