From 94cdf669b03494aebc7cb2c44217e3d6a0558b62 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 10 Apr 2017 11:22:20 +0200 Subject: [PATCH] Added new row to graph period --- pandora_console/include/functions_graph.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index f75ab606be..a0c74a7767 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -351,10 +351,13 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i } elseif ($period < SECONDS_1MONTH) { $time_format = "M \nd H\h"; - } - else { + } + elseif ($period < SECONDS_6MONTHS) { $time_format = "M \nd H\h"; } + else { + $time_format = "M Y"; + } } else { // Set the title and time format @@ -369,10 +372,13 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i } elseif ($period < SECONDS_1MONTH) { $time_format = "M d H\h"; - } - else { + } + elseif ($period < SECONDS_6MONTHS) { $time_format = "M d H\h"; } + else { + $time_format = "M Y"; + } } $timestamp_short = date($time_format, $timestamp);