Repositories
/
olsrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04fb59
)
httpinfo: the position timestamp month is zero based
author
Ferry Huberts
<ferry.huberts@pelagic.nl>
Tue, 20 May 2014 11:32:00 +0000
(13:32 +0200)
committer
Ferry 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
patch
|
blob
|
history
diff --git
a/lib/httpinfo/src/olsrd_httpinfo.c
b/lib/httpinfo/src/olsrd_httpinfo.c
index
ae833cf
..
0dff3b7
100644
(file)
--- a/
lib/httpinfo/src/olsrd_httpinfo.c
+++ b/
lib/httpinfo/src/olsrd_httpinfo.c
@@
-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) {