fix: show correct date in data grid

This commit is contained in:
Szilárd Dóró
2023-03-17 10:19:39 +01:00
parent 4b6df8b9d6
commit 798e591b1d
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'@nhost/dashboard': patch
---
fix(dashboard): show correct date in data grid

View File

@@ -46,7 +46,7 @@ export default function DataGridDateCell<TData extends object>({
: undefined;
const { year, month, day, hour, minute, second } = getDateComponents(date, {
adjustTimezone: specificType === 'timetz' || specificType === 'timestamptz',
adjustTimezone: ['date', 'timetz', 'timestamptz'].includes(specificType),
});
const { inputRef, focusCell, isEditing, cancelEditCell } =