Get current local timezone offset simplely.
This crate uses tz-rs
to obtain local timezone offset, and returns a time-rs
UtcOffset
.
```rust use tracing_subscriber::fmt::time::OffsetTime;
// Local offset timezone init, and set time format. let offset = clialocaloffset::currentlocaloffset() .expect("Can not get local offset!");
let timer = OffsetTime::new( offset, format_description!( "[year]-[month]-[day] [hour]:[minute]:[second].[subsecond digits:3]" ), ); ```