1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5572: Fix schedule actions Sunstone recommended time (#1525)

(cherry picked from commit 26cf1cdb2c30c45150cc1627f2c6297e99bb5221)
This commit is contained in:
Frederick Borges 2021-10-14 10:03:42 +02:00 committed by Tino Vazquez
parent ce18bc8d1a
commit 7059464bcb
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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;
}