Closed hismito closed 2 years ago
Huh yeah, this is definitely a bug. Timestamps::UtcOffset
should use TIMESTAMP_FORMAT_OFFSET
not TIMESTAMP_FORMAT_UTC
.
I'd welcome a PR to fix this, or will get round to it once I'm next on a machine I can easily do Rust dev on. :)
I create a logger like
at the very beginning of
main()
to not run into #44This logger will format all offset-ed timestamps in UTC, which makes them looks like they are in UTC but actually not.
I found the relevant change at https://github.com/borntyping/rust-simple_logger/commit/496d76a5deaed9cd4ab67f73c601346ab6add8ee#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759R435
Maybe we can change it to use
TIMESTAMP_FORMAT_OFFSET
instead?In the example above, they both leaves 3 digits at fracitional part of second as requsted by #55