aboutsummaryrefslogtreecommitdiffstats
path: root/src/simulator
diff options
context:
space:
mode:
authorMaximilien Cuony <maximilien@theglu.org>2016-06-05 16:05:43 +0200
committerMaximilien Cuony <maximilien@theglu.org>2016-06-05 16:05:43 +0200
commit54b86809942e247648511bab04ea793bcfda2f2c (patch)
treeac3ee881b3d6fc76cc820075724c26be478ae1d9 /src/simulator
parent9d5ff73c98c9c2da27791813b18721e366d61912 (diff)
downloadglutte-o-matic-54b86809942e247648511bab04ea793bcfda2f2c.tar.gz
glutte-o-matic-54b86809942e247648511bab04ea793bcfda2f2c.tar.bz2
glutte-o-matic-54b86809942e247648511bab04ea793bcfda2f2c.zip
Fix timestamp and fsm date
Diffstat (limited to 'src/simulator')
-rw-r--r--src/simulator/src/Core/fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulator/src/Core/fsm.c b/src/simulator/src/Core/fsm.c
index ec17e56..6f771c2 100644
--- a/src/simulator/src/Core/fsm.c
+++ b/src/simulator/src/Core/fsm.c
@@ -17,7 +17,7 @@ void fsm_state_switched(char * new_state) {
time_t now = time(NULL);
- struct tm *t = gmtime(&now);
+ struct tm *t = localtime(&now);
gui_last_fsm_states[0] = new_state;
gui_last_fsm_states_timestamps[0] = t->tm_hour * 10000 + t->tm_min * 100 + t->tm_sec;