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:
		@@ -98,7 +98,7 @@ echo("
 | 
			
		||||
 | 
			
		||||
");
 | 
			
		||||
 | 
			
		||||
$sql = "SELECT *, DATE_FORMAT(timestamp, '%D %b %T') AS date from syslog,devices WHERE syslog.device_id = devices.device_id ORDER BY seq DESC LIMIT 20";
 | 
			
		||||
$sql = "SELECT *, DATE_FORMAT(timestamp, '".$config['dateformat']['mysql']['compact']."') AS date from syslog,devices WHERE syslog.device_id = devices.device_id ORDER BY seq DESC LIMIT 20";
 | 
			
		||||
echo("<table cellspacing=0 cellpadding=2 width=100%>");
 | 
			
		||||
foreach (dbFetchRows($sql) as $entry)
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user