mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch '215-graph_date_format' into 'pandora_6.0'
Now times under 1 day will be shown in a correct format. Ticket #215 See merge request !93
This commit is contained in:
commit
af462a6c07
@ -987,11 +987,8 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set the title and time format
|
// Set the title and time format
|
||||||
if ($temp_range <= SECONDS_6HOURS) {
|
if ($temp_range <= SECONDS_1DAY) {
|
||||||
$time_format = 'H:i:s';
|
$time_format = 'd.m.Y H:i:s';
|
||||||
}
|
|
||||||
elseif ($temp_range < SECONDS_1DAY) {
|
|
||||||
$time_format = 'H:i';
|
|
||||||
}
|
}
|
||||||
elseif ($temp_range < SECONDS_15DAYS) {
|
elseif ($temp_range < SECONDS_15DAYS) {
|
||||||
$time_format = 'M d';
|
$time_format = 'M d';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user