changed blog comments date format to global date format i.e. 1 January 2012
diff --git a/erpnext/patches/august_2012/changed_blog_date_format.py b/erpnext/patches/august_2012/changed_blog_date_format.py
new file mode 100644
index 0000000..d2dd870
--- /dev/null
+++ b/erpnext/patches/august_2012/changed_blog_date_format.py
@@ -0,0 +1,4 @@
+def execute():
+ import webnotes
+ from webnotes.model.doclist import DocList
+ DocList("Website Settings", "Website Settings").save()
\ No newline at end of file
diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py
index 83da5c3..5a0a9d7 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -521,4 +521,8 @@
'patch_module': 'patches.august_2012',
'patch_file': 'report_supplier_quotations',
},
+ {
+ 'patch_module': 'patches.august_2012',
+ 'patch_file': 'changed_blog_date_format',
+ },
]
\ No newline at end of file
diff --git a/erpnext/website/doctype/blog/blog.py b/erpnext/website/doctype/blog/blog.py
index 786941c..fc389d0 100644
--- a/erpnext/website/doctype/blog/blog.py
+++ b/erpnext/website/doctype/blog/blog.py
@@ -83,4 +83,4 @@
self.doc.comment_list = comment_list or []
for comment in self.doc.comment_list:
- comment['comment_date'] = webnotes.utils.pretty_date(comment['creation'])
\ No newline at end of file
+ comment['comment_date'] = webnotes.utils.global_date_format(comment['creation'])
\ No newline at end of file