diff tempctrl.c @ 33:d3b7d4964807

Create a TZ info structure for ACST and use it when printing times.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 27 Nov 2012 15:56:31 +1030
parents 03592ca4d37e
children 56b32b0c9a40
line wrap: on
line diff
--- a/tempctrl.c	Tue Nov 27 15:56:09 2012 +1030
+++ b/tempctrl.c	Tue Nov 27 15:56:31 2012 +1030
@@ -272,7 +272,7 @@
 	currstate = nextstate;
 
     
-    gmtime_r(&t, &tm);
+    localtime_r(&t, &tm);
     assert(strftime(buf, sizeof(buf) - 1, "%Y/%m/%d %H:%M:%S: ", &tm) != 0);
     fputs(buf, stdout);
     printtemp("Tr", settings.target_temp, ", ");