From 12e284a7c993bcb7c3c3d93b8e355df5242bdb48 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 5 Jan 2010 15:23:43 +0000 Subject: 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 --- pjsip/src/pjsip-simple/presence_body.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjsip') 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); -- cgit v1.2.3