π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: show timezone does not work in formula date time formatting
Ramesh Mane9629a8ffd26c
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/cells/Formula.ts b/packages/nc-gui/components/smartsheet/grid/canvas/cells/Formula.tsindex 7b980924c5..960b5026de 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/cells/Formula.ts+++ b/packages/nc-gui/components/smartsheet/grid/canvas/cells/Formula.ts@@ -72,13 +72,23 @@ export const FormulaCellRenderer: CellRenderer = {// If Custom Formatting is applied to the column, render the cell using the display type cell rendererif (colMeta?.display_type) {+ const updatedColumn = {+ ...column,+ uidt: colMeta?.display_type || UITypes.LongText,+ ...(colMeta.display_column_meta || {}),+ }++ if (updatedColumn.uidt === UITypes.DateTime) {+ updatedColumn.extra = {+ ...(updatedColumn.extra || {}),+ timezone: isEeUI ? getTimeZoneFromName(updatedColumn?.meta?.timezone) : undefined,+ isDisplayTimezone: isEeUI ? updatedColumn?.meta?.isDisplayTimezone : undefined,+ }+ }+getDisplayValueCellRenderer(column).render(ctx, {...props,- column: {- ...column,- uidt: colMeta?.display_type || UITypes.LongText,- ...colMeta.display_column_meta,- },+ column: updatedColumn,readonly: true,formula: true,})