From 6ee3df7e4e44e7e8f0c852ffe37bf614161d3fcd Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 18 Jul 2022 05:49:42 +0000 Subject: [PATCH] fix timezone when editing task amidaware/tacticalrmm#1189 --- src/components/tasks/AutomatedTaskForm.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/AutomatedTaskForm.vue b/src/components/tasks/AutomatedTaskForm.vue index eb59813..3981455 100644 --- a/src/components/tasks/AutomatedTaskForm.vue +++ b/src/components/tasks/AutomatedTaskForm.vue @@ -991,10 +991,16 @@ export default { : []; // remove milliseconds and Z to work with native date input - task.value.run_time_date = formatDateInputField(task.value.run_time_date); + task.value.run_time_date = formatDateInputField( + task.value.run_time_date, + true + ); if (task.value.expire_date) - task.value.expire_date = formatDateInputField(task.value.expire_date); + task.value.expire_date = formatDateInputField( + task.value.expire_date, + true + ); // set task type if monthlydow is being used if (task.value.task_type === "monthlydow") {