mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch '699-wrong_format_in_graphs' into 'pandora_6.0'
Added new row to graph period See merge request !356
This commit is contained in:
commit
59719bdffc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user