mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Consistent date formatting from MySQL
This commit is contained in:
@@ -4,7 +4,7 @@ if ($_SESSION['userlevel'] >= '10')
|
||||
{
|
||||
echo("<table cellspacing=0 cellpadding=1 width=100%>");
|
||||
|
||||
foreach (dbFetchRows("SELECT *,DATE_FORMAT(datetime, '%D %b %Y %T') as humandate FROM `authlog` ORDER BY `datetime` DESC LIMIT 0,250") as $entry)
|
||||
foreach (dbFetchRows("SELECT *,DATE_FORMAT(datetime, '".$config['dateformat']['mysql']['compact']."') as humandate FROM `authlog` ORDER BY `datetime` DESC LIMIT 0,250") as $entry)
|
||||
{
|
||||
if ($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
||||
|
||||
|
Reference in New Issue
Block a user