status-im / nim-chronicles

A crafty implementation of structured logging for Nim.
Apache License 2.0
161 stars 20 forks source link

Enable using UTC timestamps instead of local #151

Open igor-sirotin opened 3 months ago

igor-sirotin commented 3 months ago

Currently timestamps use now() which means local timezone: https://github.com/status-im/nim-chronicles/blob/ccbb7566d1a06bfc1ec42dd8da74a47f1d3b3f4b/chronicles/log_output.nim#L425-L426

It's not convenient when you're trying to analyse logs for users from different timezones. In this case it's common to use UTC timestamps.

This is an feature that would be nice to have in status-desktop app: