You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During a migration I had the (unfortunate) situation that some logjam agents where sending requests and events in UTC time and some in CET. It looks like the data is stored with the timezone information in the logjam database but the view doesn't handle it correctly.
Unfortunately this a somewhat complicated topic. Allowing arbitrary time zones in the sender will require the logjam-importer (and quite possibly also the devices) to convert incoming time stamps between time zones. Do you by any chance know a C-libary for doing so?
During a migration I had the (unfortunate) situation that some logjam agents where sending requests and events in UTC time and some in CET. It looks like the data is stored with the timezone information in the logjam database but the view doesn't handle it correctly.
To fix that I hat to monkey patch logjam_agent to send all requests with the application timezone. I replace this two (https://github.com/skaes/logjam_agent/blob/master/lib/logjam_agent/rack/logger.rb#L29, https://github.com/skaes/logjam_agent/blob/master/lib/logjam_agent/rack/logger.rb#L51)
Time.now
occurences withTime.current
which honors the application timezone.For events I manually specified the start time:
LogjamAgent.event(current_revision, started_at: Time.current.iso8601)
The text was updated successfully, but these errors were encountered: