提交 a17123da authored 作者: Michael Jerris's avatar Michael Jerris

The day before today Mike Murdock found a bug making switch_str_time return the…

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
上级 09384634
...@@ -148,7 +148,7 @@ SWITCH_DECLARE(switch_time_t) switch_str_time(char *in) ...@@ -148,7 +148,7 @@ SWITCH_DECLARE(switch_time_t) switch_str_time(char *in)
if (proceed > 3) { if (proceed > 3) {
pcre_copy_substring(in, ovector, proceed, 3, replace, sizeof(replace)); pcre_copy_substring(in, ovector, proceed, 3, replace, sizeof(replace));
tm.tm_mday = atoi(replace)-1; tm.tm_mday = atoi(replace);
} }
if (proceed > 4) { if (proceed > 4) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论