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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/src/Core/common.c b/src/common/src/Core/common.c
index 8c63917..4adca26 100644
--- a/src/common/src/Core/common.c
+++ b/src/common/src/Core/common.c
@@ -128,11 +128,14 @@ int local_time(struct tm *time)
time->tm_isdst = 1;
}
+ time->tm_year -= 1900; //TODO Same on hardware ?
+
// Let mktime fix the struct tm *time
if (mktime(time) == (time_t)-1) {
// TODO inform about failure
valid = 0;
}
+
}
return valid;