mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 00:18:03 +02:00
Consistent date formatting from MySQL
This commit is contained in:
@@ -96,7 +96,7 @@ echo("
|
||||
|
||||
");
|
||||
|
||||
$sql = "SELECT *, DATE_FORMAT(timestamp, '%D %b %T') AS date from syslog ORDER BY timestamp DESC LIMIT 20";
|
||||
$sql = "SELECT *, DATE_FORMAT(timestamp, '".$config['dateformat']['mysql']['compact']."') AS date from syslog ORDER BY timestamp DESC LIMIT 20";
|
||||
echo("<table cellspacing=0 cellpadding=2 width=100%>");
|
||||
foreach (dbFetchRows($sql) as $entry)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user