summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-01-05 15:23:43 +0000
committerBenny Prijono <bennylp@teluu.com>2010-01-05 15:23:43 +0000
commit12e284a7c993bcb7c3c3d93b8e355df5242bdb48 (patch)
tree4a29bbe3cf858cebfc2c2234d9a38db25d5f44b0
parent2e7c2feace463e9dc191465271866b51d79e4f1f (diff)
Misc (#1003): fixed bug: wrong month value in PIDF timestamp generation (thanks Johan Lantz for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3045 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsip-simple/presence_body.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip/src/pjsip-simple/presence_body.c b/pjsip/src/pjsip-simple/presence_body.c
index b7bb7f1f..20e74458 100644
--- a/pjsip/src/pjsip-simple/presence_body.c
+++ b/pjsip/src/pjsip-simple/presence_body.c
@@ -124,7 +124,7 @@ PJ_DEF(pj_status_t) pjsip_pres_create_pidf( pj_pool_t *pool,
tslen = pj_ansi_snprintf(buf, sizeof(buf),
"%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
- pt.year, pt.mon, pt.day,
+ pt.year, pt.mon+1, pt.day,
pt.hour, pt.min, pt.sec, pt.msec);
if (tslen > 0 && tslen < sizeof(buf)) {
pj_str_t time = pj_str(buf);