diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 636c50dc85..25d7ffb86f 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -4905,6 +4905,14 @@ function accountingGraphs(div, opt){ $("#acct_start_time", div).val(d.getFullYear() + '-' + ('0'+(d.getMonth()+1)).slice(-2) + '-' + ('0'+d.getDate()).slice(-2)); + //-------------------------------------------------------------------------- + // Init end time to today + //-------------------------------------------------------------------------- + + d = new Date(); + + $("#acct_end_time", div).val(d.getFullYear() + '-' + ('0'+(d.getMonth()+1)).slice(-2) + '-' + ('0'+d.getDate()).slice(-2)); + //-------------------------------------------------------------------------- // VM owner: all, group, user //--------------------------------------------------------------------------