Have DateTimeWidget include the time zone in its type.

This commit is contained in:
2019-09-30 15:51:42 -07:00
parent 10c7dcdeab
commit 5f2795f5d2
2 changed files with 25 additions and 29 deletions

View File

@@ -25,7 +25,7 @@ fn main() {
// Realtime upload/download rate for a interface
bar.push(NetworkSpeedWidget::new(&opts.nic, 6));
let mut dt = DateTimeWidget::tz("%H:%M %Z".to_string(), "Europe/London".to_string());
let mut dt = DateTimeWidget::tz("%H:%M %Z".to_string(), chrono_tz::Europe::London);
dt.set_colors(&vec![
TimeColor {
start: NaiveTime::from_hms(0, 0, 0),