]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: correct define_time_date
authorMathieu Parent <math.parent@gmail.com>
Thu, 27 May 2010 09:53:54 +0000 (11:53 +0200)
committerMathieu Parent <math.parent@gmail.com>
Thu, 27 May 2010 09:55:09 +0000 (11:55 +0200)
The 'day' field is the month day (and not year day).

Fix MODSKINNY-4 and MODSKINNY-7

src/mod/endpoints/mod_skinny/skinny_protocol.c

index b6c7b23a7e0b0ace69894cf0618063c634b5c9e4..c71b7333da877a20c76e48c6e545f0dace573503 100644 (file)
@@ -688,10 +688,10 @@ switch_status_t send_define_current_time_date(listener_t *listener)
            tm.tm_year + 1900,
            tm.tm_mon + 1,
            tm.tm_wday,
-           tm.tm_yday + 1,
+           tm.tm_mday,
            tm.tm_hour,
            tm.tm_min,
-           tm.tm_sec + 1,
+           tm.tm_sec,
            tm.tm_usec / 1000,
            ts / 1000000);
 }