Merge branch '700-wrong_format_in_graphs' into 'develop'

Added new ranges to graph period

See merge request !355
This commit is contained in:
vgilc 2017-05-17 17:17:47 +02:00
commit eb7514dcd0
1 changed files with 8 additions and 2 deletions

View File

@ -353,9 +353,12 @@ 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
@ -371,9 +374,12 @@ 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);