mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Modified the date selector to use the session timezone * Set the timezone in the datetime picker and make sure it is always passed a moment date object, then altered the submit javascript function to use the existing moment object instead of creating its own * Update the poll log to display in the correct timezone * Fix the poll log to make the search work and be timezone aware * Fix the displayed time on the device overview event log * Style fixes
21 lines
942 B
PHP
21 lines
942 B
PHP
<?php
|
|
|
|
echo ' <div class="row">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default panel-condensed">
|
|
<div class="panel-heading">';
|
|
echo '<a href="device/device=' . $device['device_id'] . '/tab=logs/section=eventlog/">';
|
|
echo '<i class="fa fa-bookmark fa-lg icon-theme" aria-hidden="true"></i> <strong>Recent Events</strong></a>';
|
|
echo ' </div>
|
|
<table class="table table-hover table-condensed table-striped">';
|
|
|
|
$eventlog = dbFetchRows("SELECT *,DATE_FORMAT(IFNULL(CONVERT_TZ(datetime, @@global.time_zone, ?),datetime), '" . \LibreNMS\Config::get('dateformat.mysql.compact') . "') as humandate FROM `eventlog` WHERE `device_id` = ? ORDER BY `datetime` DESC LIMIT 0,10", [session('preferences.timezone'), $device['device_id']]);
|
|
foreach ($eventlog as $entry) {
|
|
include 'includes/html/print-event-short.inc.php';
|
|
}
|
|
|
|
echo '</table>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</div>';
|