From c225ffc7e37343b41400c7d418fccbd6ac2fea82 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Thu, 28 Sep 2023 12:03:54 +0530 Subject: [PATCH] Fix : When creating events from template the timezone is not autofilled [SDESK-6974] --- client/actions/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/actions/main.ts b/client/actions/main.ts index cc209f576..47ee02b9d 100644 --- a/client/actions/main.ts +++ b/client/actions/main.ts @@ -179,7 +179,9 @@ const createNew = (itemType, item = null, updateUrl = true, modal = false) => ( function createEventFromTemplate(template: IEventTemplate) { return self.createNew(ITEM_TYPE.EVENT, { ...template.data, - dates: {}, + dates: { + tz: template.data.dates?.tz + }, }); }