ptmcg / logmerger

TUI utility to view multiple log files with merged timeline
MIT License
144 stars 3 forks source link

TODO: how to handle UTC timestamps, and UTC display? #23

Open ptmcg opened 9 months ago

ptmcg commented 9 months ago

Detect timestamps with trailing 'Z' Add -utc command line option to work in UTC, otherwise, assume naive times are all local time, and convert UTC times to local time.

ptmcg commented 9 months ago

Right now, timezoned timestamps in log files get converted to local time before merging.

ptmcg commented 9 months ago

Need to add --utc command line option, to have all timestamp handlers emit UTC timestamps (do before Nov 5, end of DST).

ptmcg commented 9 months ago

If naive timestamps found, determine dst status from start to end to emit warning if cross DST boundary.

ptmcg commented 9 months ago

Also, to resolve timestamps across a DST boundary, will need to disable the windowed sort, or sort by UTC formatted time, so that "fall behind" DST transitions (which could resolve to local times going into the past) did not apply an improper sort on the timestamps.