Icinga / icingaweb2-module-elasticsearch

This module will not be updated by Icinga anymore. Please don't attempt to use it.
GNU General Public License v2.0
29 stars 9 forks source link

Convert timestamp to timezone #44

Closed GalipoliX closed 5 years ago

GalipoliX commented 5 years ago

This converts the @timestamp field to the currrent set default timezone. Default timezone is the one that is set in Icingaweb2 user profile.

Elastic saves the timestamp in UTC.

GalipoliX commented 5 years ago

Fixes #29

lippserd commented 5 years ago

Hi,

Thanks for the PR. I changed the code a little to better reflect the UTC to default time zone modification.

Best, Eric