Change date in hover in compact mode

This commit is contained in:
Tatiana Llorente 2019-12-13 13:40:19 +01:00
parent 8fd1f3c99e
commit b38c396837
2 changed files with 2 additions and 2 deletions

View File

@ -1180,7 +1180,7 @@ $row++;
$compact = true;
}
$table_other->data[$row][0] = __('Timestamp, time comparation, or Compact mode');
$table_other->data[$row][0] = __('Timestamp, time comparison, or compact mode');
$table_other->data[$row][1] = '<div class="switch_radio_button">';
$table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'comparation', __('Comparation in rollover'), $comparation, true);
$table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'timestamp', __('Timestamp in rollover'), $timestamp, true);

View File

@ -537,7 +537,7 @@ function ui_print_timestamp($unixtime, $return=false, $option=[])
);
} else if ($prominent == 'compact') {
$units = 'tiny';
$title = human_time_comparation($unixtime);
$title = date($config['date_format'], $unixtime);
$data = human_time_comparation($unixtime, $units);
} else {
$title = date($config['date_format'], $unixtime);