mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added support for user timezones and user browser timezone by default (incomplete) (#13626)
* Added support for user timezones and user browser timezone byt default * Formatting fixes * Use the timezone for alert log display also added validation for the timezone because it's being used in SQL. * Formatting fixes * Added return type * Formatting" * Update the latency graphs to use the user timezone * Simplify the web routes config * Update phpstan to ignore type error * Fixed up the phpstan config * Reverse phpstan change * Re-apply phpstan override * Remove the option to unset the session timezone * Formatting fix * Update outge and event logs to use session timezone * Fix route for the timezone control * Made the timezone more dynamic * Fix a logic error that was stopping the timezone from being set automatically on login * Prevent getPref from being called twice * again prevent getPref double call * getPref double call * Fixed typo made during merge * Fixed merge error in phpstan-baseline.neon * Change spaces to tabs in phpstan-baseline.neon * Update error count --------- Co-authored-by: Tony Murray <[email protected]>
This commit is contained in:
@@ -117,7 +117,7 @@ class EventlogController extends TableController
|
||||
$output = "<span class='alert-status ";
|
||||
$output .= $this->severityLabel($eventlog->severity);
|
||||
$output .= " eventlog-status'></span><span style='display:inline;'>";
|
||||
$output .= (new Carbon($eventlog->datetime))->format(Config::get('dateformat.compact'));
|
||||
$output .= (new Carbon($eventlog->datetime))->setTimezone(session('timezone'))->format(Config::get('dateformat.compact'));
|
||||
$output .= '</span>';
|
||||
|
||||
return $output;
|
||||
|
||||
Reference in New Issue
Block a user