Support relative time for graphs again (#10359)

This commit is contained in:
Tony Murray
2019-06-21 07:17:43 -05:00
committed by GitHub
parent 1f19eb2146
commit 4ad20eedbb
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ foreach ($menu_options as $option => $text) {
if ($vars['format'] == 'graph_' . $option) {
$listoptions .= '<span class="pagemenu-selected">';
}
$listoptions .= '<a href="' . generate_url($vars, array('format' => 'graph_' . $option, 'from' => '-24h', 'to' => 'now')) . '">' . $text . '</a>';
$listoptions .= '<a href="' . generate_url($vars, array('format' => 'graph_' . $option, 'from' => '-24hour', 'to' => 'now')) . '">' . $text . '</a>';
if ($vars['format'] == 'graph_' . $option) {
$listoptions .= '</span>';
}