From 7059464bcbc167e1979699138c2afe72c8238408 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Thu, 14 Oct 2021 10:03:42 +0200 Subject: [PATCH] B #5572: Fix schedule actions Sunstone recommended time (#1525) (cherry picked from commit 26cf1cdb2c30c45150cc1627f2c6297e99bb5221) --- src/sunstone/public/app/utils/schedule_action.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sunstone/public/app/utils/schedule_action.js b/src/sunstone/public/app/utils/schedule_action.js index 5cf746f2d9..ddd24cdf2e 100644 --- a/src/sunstone/public/app/utils/schedule_action.js +++ b/src/sunstone/public/app/utils/schedule_action.js @@ -161,10 +161,9 @@ define(function (require) { } function _setup(context) { - var today = new Date(); - var dd = today.getDate(); - var mm = today.getMonth() + 1; - var yyyy = today.getFullYear(); + var dd = newDate.getDate(); + var mm = newDate.getMonth() + 1; + var yyyy = newDate.getFullYear(); if (dd < 10) { dd = "0" + dd; }