[minor] fixed globals and patch for wsgi migration

This commit is contained in:
Anand Doshi
2013-10-10 12:03:11 +05:30
parent ddca90ef7b
commit 7798934989
5 changed files with 40 additions and 13 deletions

View File

@@ -75,7 +75,7 @@ def _simulate():
for i in xrange(runs_for):
print current_date.strftime("%Y-%m-%d")
webnotes.utils.current_date = current_date
webnotes.local.current_date = current_date
if current_date.weekday() in (5, 6):
current_date = webnotes.utils.add_days(current_date, 1)