timestamps_utc_offset/timestamps_utc_offset.rs
1use simple_logger::SimpleLogger;
2use time::UtcOffset;
3
4fn main() {
5 SimpleLogger::new()
6 .with_utc_offset(UtcOffset::from_hms(14, 0, 0).unwrap())
7 .init()
8 .unwrap();
9
10 log::warn!("This is an example message using a static UTC offset.");
11 log::info!("Daylight savings or other timezone changes will not be respected.");
12}