1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

featue #3077: Fix default acct start time input

This commit is contained in:
Daniel Molina 2014-08-14 13:25:32 +02:00
parent d46fe2da27
commit 94d7b90ad0

View File

@ -4751,7 +4751,7 @@ function accountingGraphs(div, opt){
d.setDate(1);
d.setMonth(d.getMonth() - 1);
$("#acct_start_time", div).val(d.getFullYear() + '/' + (d.getMonth()+1) + '/' + d.getDate());
$("#acct_start_time", div).val(d.getFullYear() + '-' + ('0'+(d.getMonth()+1)).slice(-2) + '-' + ('0'+d.getDate()).slice(-2));
//--------------------------------------------------------------------------
// VM owner: all, group, user