changed blog comments date format to global date format i.e. 1 January 2012

This commit is contained in:
Anand Doshi 2012-08-23 15:24:21 +05:30
parent 688b712bda
commit 6db2ac51e6
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,4 @@
def execute():
import webnotes
from webnotes.model.doclist import DocList
DocList("Website Settings", "Website Settings").save()

View File

@ -521,4 +521,8 @@ patch_list = [
'patch_module': 'patches.august_2012',
'patch_file': 'report_supplier_quotations',
},
{
'patch_module': 'patches.august_2012',
'patch_file': 'changed_blog_date_format',
},
]

View File

@ -83,4 +83,4 @@ class DocType(website.web_page.Page):
self.doc.comment_list = comment_list or []
for comment in self.doc.comment_list:
comment['comment_date'] = webnotes.utils.pretty_date(comment['creation'])
comment['comment_date'] = webnotes.utils.global_date_format(comment['creation'])