Change date in hover in compact mode
This commit is contained in:
parent
8fd1f3c99e
commit
b38c396837
|
@ -1180,7 +1180,7 @@ $row++;
|
||||||
$compact = true;
|
$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] = '<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', 'comparation', __('Comparation in rollover'), $comparation, true);
|
||||||
$table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'timestamp', __('Timestamp in rollover'), $timestamp, true);
|
$table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'timestamp', __('Timestamp in rollover'), $timestamp, true);
|
||||||
|
|
|
@ -537,7 +537,7 @@ function ui_print_timestamp($unixtime, $return=false, $option=[])
|
||||||
);
|
);
|
||||||
} else if ($prominent == 'compact') {
|
} else if ($prominent == 'compact') {
|
||||||
$units = 'tiny';
|
$units = 'tiny';
|
||||||
$title = human_time_comparation($unixtime);
|
$title = date($config['date_format'], $unixtime);
|
||||||
$data = human_time_comparation($unixtime, $units);
|
$data = human_time_comparation($unixtime, $units);
|
||||||
} else {
|
} else {
|
||||||
$title = date($config['date_format'], $unixtime);
|
$title = date($config['date_format'], $unixtime);
|
||||||
|
|
Loading…
Reference in New Issue