Эх сурвалжийг харах

Swap UTC and localtime positions

Thomas Dy 9 жил өмнө
parent
commit
d9a999e17f
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      src/sensors.rs

+ 2 - 2
src/sensors.rs

@@ -110,8 +110,8 @@ pub fn sensors(tx: &Channel, config: &Config) {
 
     let mut sensors: Vec<Box<Sensor>> = vec![
         Box::new(TempSensor::new(zone)),
-        Box::new(TimeSensor::new("%Y-%m-%d %H:%M", false)),
-        Box::new(TimeSensor::new("UTC %H:%M", true))
+        Box::new(TimeSensor::new("UTC %H:%M", true)),
+        Box::new(TimeSensor::new("%Y-%m-%d %H:%M", false))
     ];
 
     let bat = config.lookup("sensors.battery");