From 94d7b90ad031c340fe3961c57899b808c9ebf101 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 14 Aug 2014 13:25:32 +0200 Subject: [PATCH] featue #3077: Fix default acct start time input --- src/sunstone/public/js/sunstone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 36c0356d40..12ddac642f 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -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