aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/src/Core/common.c
diff options
context:
space:
mode:
authorMaximilien Cuony <maximilien@theglu.org>2016-06-03 21:44:56 +0200
committerMaximilien Cuony <maximilien@theglu.org>2016-06-03 21:44:56 +0200
commit53c2afbf719d91f660e815c160e73066ef1ec9e0 (patch)
tree154a09643c55152360b5ad7d4ed7c7f0e45d0397 /src/common/src/Core/common.c
parent64e3e0b76ebebe2cea949e27d49c149b2e876391 (diff)
downloadglutte-o-matic-53c2afbf719d91f660e815c160e73066ef1ec9e0.tar.gz
glutte-o-matic-53c2afbf719d91f660e815c160e73066ef1ec9e0.tar.bz2
glutte-o-matic-53c2afbf719d91f660e815c160e73066ef1ec9e0.zip
Working GPS simulator
Diffstat (limited to 'src/common/src/Core/common.c')
-rw-r--r--src/common/src/Core/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/src/Core/common.c b/src/common/src/Core/common.c
index 4adca26..c31bbf8 100644
--- a/src/common/src/Core/common.c
+++ b/src/common/src/Core/common.c
@@ -128,7 +128,9 @@ int local_time(struct tm *time)
time->tm_isdst = 1;
}
+#ifdef SIMULATOR
time->tm_year -= 1900; //TODO Same on hardware ?
+#endif
// Let mktime fix the struct tm *time
if (mktime(time) == (time_t)-1) {