httpinfo: the position timestamp month is zero based
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 20 May 2014 11:32:00 +0000 (13:32 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 20 May 2014 12:06:22 +0000 (14:06 +0200)
So increment it to make it human-readable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/httpinfo/src/olsrd_httpinfo.c

index ae833cf..0dff3b7 100644 (file)
@@ -1173,7 +1173,7 @@ static void build_pud_body(struct autobuf *abuf) {
                if (datePresent) {
                        abuf_appendf(abuf, "%04d%02d%02d",
                                txGpsInfo->txPosition.nmeaInfo.utc.year + 1900,
-                               txGpsInfo->txPosition.nmeaInfo.utc.mon,
+                               txGpsInfo->txPosition.nmeaInfo.utc.mon + 1,
                                txGpsInfo->txPosition.nmeaInfo.utc.day);
                }
                if (datePresent && timePresent) {