# HG changeset patch
# User moel.mich
# Date 1311545521 0
# Node ID d19c6b4d625e965870884935ae00a9cf04024ba2
# Parent  596df85bb4e11060ef007ce597f794b1b4cc3b48
Replaced the more expensive calls to DateTime.Now with DateTime.UtcNow.

diff -r 596df85bb4e1 -r d19c6b4d625e GUI/PlotPanel.cs
--- a/GUI/PlotPanel.cs	Sun Jul 24 16:18:56 2011 +0000
+++ b/GUI/PlotPanel.cs	Sun Jul 24 22:12:01 2011 +0000
@@ -155,7 +155,7 @@
     }
 
     protected override void OnPaint(PaintEventArgs e) {
-      now = DateTime.Now - new TimeSpan(0, 0, 4);
+      now = DateTime.UtcNow - new TimeSpan(0, 0, 4);
 
       List<float> timeGrid = GetTimeGrid();
       List<float> tempGrid = GetTemperatureGrid();
diff -r 596df85bb4e1 -r d19c6b4d625e Hardware/Sensor.cs
--- a/Hardware/Sensor.cs	Sun Jul 24 16:18:56 2011 +0000
+++ b/Hardware/Sensor.cs	Sun Jul 24 22:12:01 2011 +0000
@@ -134,7 +134,7 @@
         }
       } catch { }
       if (values.Count > 0)
-        AppendValue(float.NaN, DateTime.Now);
+        AppendValue(float.NaN, DateTime.UtcNow);
     }
 
     private void AppendValue(float value, DateTime time) {
@@ -193,7 +193,7 @@
         return currentValue; 
       }
       set {
-        DateTime now = DateTime.Now;
+        DateTime now = DateTime.UtcNow;
         while (values.Count > 0 && (now - values.First.Time).TotalDays > 1)
           values.Remove();