forked from wathiede/i3xs
Do time color calculation with TZ aware time value.
This commit is contained in:
@@ -30,13 +30,10 @@ 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(), "Europe/London".to_string());
|
||||
dt.set_colors(&vec![
|
||||
TimeColor {
|
||||
start: NaiveTime::from_hms(13, 0, 0),
|
||||
start: NaiveTime::from_hms(15, 0, 0),
|
||||
color: ColorRGB::yellow(),
|
||||
},
|
||||
TimeColor {
|
||||
|
||||
Reference in New Issue
Block a user