]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
The day before today Mike Murdock found a bug making switch_str_time return the day...
authorMichael Jerris <mike@jerris.com>
Wed, 10 Jan 2007 14:42:47 +0000 (14:42 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 10 Jan 2007 14:42:47 +0000 (14:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3933 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_utils.c

index b5786d6fe3a3258e0f1c5284c2b575393a2bd4f8..1e82035236b565b535bd30f72277ef8ee00b76df 100644 (file)
@@ -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) {