changed blog comments date format to global date format i.e. 1 January 2012
This commit is contained in:
parent
688b712bda
commit
6db2ac51e6
4
erpnext/patches/august_2012/changed_blog_date_format.py
Normal file
4
erpnext/patches/august_2012/changed_blog_date_format.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
def execute():
|
||||||
|
import webnotes
|
||||||
|
from webnotes.model.doclist import DocList
|
||||||
|
DocList("Website Settings", "Website Settings").save()
|
@ -521,4 +521,8 @@ patch_list = [
|
|||||||
'patch_module': 'patches.august_2012',
|
'patch_module': 'patches.august_2012',
|
||||||
'patch_file': 'report_supplier_quotations',
|
'patch_file': 'report_supplier_quotations',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.august_2012',
|
||||||
|
'patch_file': 'changed_blog_date_format',
|
||||||
|
},
|
||||||
]
|
]
|
@ -83,4 +83,4 @@ class DocType(website.web_page.Page):
|
|||||||
|
|
||||||
self.doc.comment_list = comment_list or []
|
self.doc.comment_list = comment_list or []
|
||||||
for comment in self.doc.comment_list:
|
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'])
|
Loading…
Reference in New Issue
Block a user