From 7b6c056276a4bcdff8540bd4939fd76225cbc117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 22 Oct 2014 16:50:29 +0200 Subject: [PATCH] Bug #3133: Init end time input for accounting --- src/sunstone/public/js/sunstone.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 //--------------------------------------------------------------------------