summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOLFDB <olf@eisenzelt.de>2023-02-04 08:18:28 +0100
committerjkoan <jkoan@users.noreply.github.com>2023-02-04 20:14:11 +0100
commit659aec34320d78bd57f685edf6ff2d85f52f3757 (patch)
tree12f36d1739a5003dffac16e9492e3422889f2d5a
parentd4b40870e1b9b8eea59d1688c5d22c0cf0a29716 (diff)
downloadnavit-659aec34320d78bd57f685edf6ff2d85f52f3757.tar.gz
Fix: #1179
This fixes the issue #1179. Tested with testcases and working until Y2K38 by when we would need long values to be used.
-rw-r--r--navit/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/util.c b/navit/util.c
index 0dfdab20e..3e26d14af 100644
--- a/navit/util.c
+++ b/navit/util.c
@@ -766,7 +766,7 @@ unsigned int iso8601_to_secs(char *iso8601) {
a=val[0]/100;
b=2-a+a/4;
- if (val[1] < 2) {
+ if (val[1] < 3) {
val[0]--;
val[1]+=12;
}