mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
Bug #1606: Changed Sunstone time functions to omply with dd/mm/yyyy
This commit is contained in:
parent
e076b1dac6
commit
e430b912dc
@ -945,12 +945,6 @@ var vm_buttons = {
|
||||
YOU NEED TO MANUALLY CHECK THE VM STATUS ON THE HOST, to decide if the operation \
|
||||
was successful or not.")
|
||||
}
|
||||
|
||||
//"VM.help" : {
|
||||
// type: "action",
|
||||
// text: '?',
|
||||
// alwaysActive: true
|
||||
//}
|
||||
}
|
||||
|
||||
var vm_info_panel = {
|
||||
|
@ -45,7 +45,7 @@ function pretty_time(time_seconds)
|
||||
var month = pad(d.getMonth()+1,2); //getMonths returns 0-11
|
||||
var year = d.getFullYear();
|
||||
|
||||
return hour + ":" + mins +":" + secs + " " + month + "/" + day + "/" + year;
|
||||
return hour + ":" + mins +":" + secs + " " + day + "/" + month + "/" + year;
|
||||
}
|
||||
|
||||
// Format time for plot axis
|
||||
@ -62,7 +62,7 @@ function pretty_time_axis(time, show_date){
|
||||
var year = d.getFullYear();
|
||||
|
||||
if (show_date)
|
||||
return month + "/" + day;
|
||||
return day + "/" + month;
|
||||
else
|
||||
return hour + ":" + mins;
|
||||
}
|
||||
@ -78,7 +78,7 @@ function pretty_time_runtime(time){
|
||||
var month = pad(d.getUTCMonth()+1,2); //getMonths returns 0-11
|
||||
var year = d.getUTCFullYear();
|
||||
|
||||
return day + "d " + hour + ":" + mins;// + ":" + secs;// + " " + month + "/" + day;
|
||||
return day + "d " + hour + ":" + mins;
|
||||
}
|
||||
|
||||
//returns a human readable size in Kilo, Mega, Giga or Tera bytes
|
||||
|
Loading…
x
Reference in New Issue
Block a user