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 (#1521)

(cherry picked from commit 46909d707b31c354053c428c54ceba6ade0cdbdd)
This commit is contained in:
Frederick Borges 2021-10-13 16:05:53 +02:00 committed by Tino Vazquez
parent 8eb6271b82
commit ce18bc8d1a
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -26,7 +26,13 @@ define(function (require) {
var TemplateTableHTML = require("hbs!./schedule_action/table");
var selector = '';
var defaultHour = "12:30";
var currentDate = new Date();
var newDate = new Date();
// if you want to add more time to the schedule action modify this
// variable
var hours = 1;
newDate.setTime(currentDate.getTime() + (hours*60*60*1000));
var defaultHour = newDate.getHours() + ":" + newDate.getMinutes();
var actionsWithARGS = [
'snapshot-create',
'snapshot-revert',
@ -81,7 +87,7 @@ define(function (require) {
var options_date_picker={
dateFormat: "yy-mm-dd",
minDate: new Date(),
minDate: currentDate,
showOptions: { direction: "down" }
};
var options_hour_picker = {