Revision
14968
Author
brian
Date
2009-09-24 16:07:47 -0500 (Thu, 24 Sep 2009)

Log Message

DP-7

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c (14967 => 14968)


--- freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	2009-09-24 20:27:52 UTC (rev 14967)
+++ freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	2009-09-24 21:07:47 UTC (rev 14968)
@@ -154,7 +154,7 @@
 		}
 
 		if (time_match && xweek) {
-			int test = (int) (tm.tm_yday + 1 / 7);
+			int test = (int) (tm.tm_yday / 7 + 1);
 			time_match = switch_number_cmp(xweek, test);
 			switch_log_printf(SWITCH_CHANNEL_SESSION_LOG_CLEAN(session), SWITCH_LOG_DEBUG,
 							  "Dialplan: week of year[%d] =~ %s (%s)\n", test, xweek, time_match ? "PASS" : "FAIL");