diff options
author | OLFDB <olf@eisenzelt.de> | 2023-02-04 08:18:28 +0100 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2023-02-04 20:14:11 +0100 |
commit | 659aec34320d78bd57f685edf6ff2d85f52f3757 (patch) | |
tree | 12f36d1739a5003dffac16e9492e3422889f2d5a | |
parent | d4b40870e1b9b8eea59d1688c5d22c0cf0a29716 (diff) | |
download | navit-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.c | 2 |
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; } |