Skip to content

Commit

Permalink
fix: propertyType date should not convert to local timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
AshotN authored and dziraf committed Jul 31, 2024
1 parent 3321d77 commit d105b97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d105b97

Please sign in to comment.