From 77726849adf94a9975776bd2e2848658786206ac Mon Sep 17 00:00:00 2001 From: Jakub Serafin Date: Mon, 23 Oct 2023 10:24:21 +0200 Subject: [PATCH] (core) setting timezone on create column Summary: Before this diff, "Create at" and "Modify at" had empty "Timezone" field in column editor panel. This diff is setting document timezone to DateTime column created by this shortcuts Test Plan: Manual so far Reviewers: georgegevoian Reviewed By: georgegevoian Subscribers: georgegevoian Differential Revision: https://phab.getgrist.com/D4086 --- app/client/ui/GridViewMenus.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/ui/GridViewMenus.ts b/app/client/ui/GridViewMenus.ts index f9287847..f0c88285 100644 --- a/app/client/ui/GridViewMenus.ts +++ b/app/client/ui/GridViewMenus.ts @@ -109,7 +109,7 @@ function buildTimestampMenuItems(gridView: GridView, index?: number) { await gridView.insertColumn(t('Created At'), { colInfo: { label: t('Created At'), - type: 'DateTime', + type: `DateTime:${gridView.gristDoc.docModel.docInfoRow.timezone()}`, isFormula: false, formula: 'NOW()', recalcWhen: RecalcWhen.DEFAULT, @@ -127,7 +127,7 @@ function buildTimestampMenuItems(gridView: GridView, index?: number) { await gridView.insertColumn(t('Last Updated At'), { colInfo: { label: t('Last Updated At'), - type: 'DateTime', + type: `DateTime:${gridView.gristDoc.docModel.docInfoRow.timezone()}`, isFormula: false, formula: 'NOW()', recalcWhen: RecalcWhen.MANUAL_UPDATES,