Now times under 1 day will be shown in a correct format. Ticket #215

This commit is contained in:
Arturo Gonzalez 2017-01-31 15:46:56 +01:00
parent 7fde04ebb3
commit 3976a45e89
1 changed files with 2 additions and 5 deletions

View File

@ -1007,11 +1007,8 @@ function graphic_combined_module ($module_list, $weight_list, $period,
}
// Set the title and time format
if ($temp_range <= SECONDS_6HOURS) {
$time_format = 'H:i:s';
}
elseif ($temp_range < SECONDS_1DAY) {
$time_format = 'H:i';
if ($temp_range <= SECONDS_1DAY) {
$time_format = 'd.m.Y H:i:s';
}
elseif ($temp_range < SECONDS_15DAYS) {
$time_format = 'M d';