From: Michael Jerris Date: Wed, 10 Jan 2007 14:42:47 +0000 (+0000) Subject: The day before today Mike Murdock found a bug making switch_str_time return the day... X-Git-Tag: v1.0-beta1~1371 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a17123dae483c60c5387f5b1ed25dfde9bb0767e;p=thirdparty%2Ffreeswitch.git The day before today Mike Murdock found a bug making switch_str_time return the day before, but it was already the day before today, so it returned 2 days ago, and that was just not right. Now time has all come back together. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3933 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_utils.c b/src/switch_utils.c index b5786d6fe3..1e82035236 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -148,7 +148,7 @@ SWITCH_DECLARE(switch_time_t) switch_str_time(char *in) if (proceed > 3) { pcre_copy_substring(in, ovector, proceed, 3, replace, sizeof(replace)); - tm.tm_mday = atoi(replace)-1; + tm.tm_mday = atoi(replace); } if (proceed > 4) {