mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Added new row to graph period
This commit is contained in:
parent
09c29f5fd0
commit
94cdf669b0
@ -352,9 +352,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
|
||||
@ -370,9 +373,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user