From 48c7bb320e6db064a919d84088c5995b2d039bb0 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 27 May 2010 11:53:54 +0200 Subject: [PATCH] Skinny: correct define_time_date 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_skinny/skinny_protocol.c b/src/mod/endpoints/mod_skinny/skinny_protocol.c index b6c7b23a7e..c71b7333da 100644 --- a/src/mod/endpoints/mod_skinny/skinny_protocol.c +++ b/src/mod/endpoints/mod_skinny/skinny_protocol.c @@ -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); }