aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/src/Core/common.c
diff options
context:
space:
mode:
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) {