From a17123dae483c60c5387f5b1ed25dfde9bb0767e Mon Sep 17 00:00:00 2001
From: Michael Jerris <mike@jerris.com>
Date: Wed, 10 Jan 2007 14:42:47 +0000
Subject: [PATCH] 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
---
 src/switch_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {