From c995cc096aa76c3a39a3715cd3bec05edcaba470 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 21 Feb 2013 12:04:25 +0530 Subject: [PATCH] fix in formatdate when no date is passed --- webnotes/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/utils/__init__.py b/webnotes/utils/__init__.py index 6902605dd8..047d1a0d19 100644 --- a/webnotes/utils/__init__.py +++ b/webnotes/utils/__init__.py @@ -266,7 +266,7 @@ def formatdate(string_date=None): if string_date: string_date = getdate(string_date) else: - string_date = nowdate() + string_date = now_datetime().date() global user_format if not user_format: