From f2b36a4fcbc8c5688e599bc3fabc1c60a1b657c3 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 10 May 2012 11:41:58 -0400 Subject: fixed timezone bug on edit comment --- askbot/views/writers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/askbot/views/writers.py b/askbot/views/writers.py index 7727eb04..8b02adfb 100644 --- a/askbot/views/writers.py +++ b/askbot/views/writers.py @@ -603,11 +603,12 @@ def edit_comment(request): is_deletable = template_filters.can_delete_comment(comment_post.author, comment_post) is_editable = template_filters.can_edit_comment(comment_post.author, comment_post) + tz = template_filters.TIMEZONE_STR return { 'id' : comment_post.id, 'object_id': comment_post.parent.id, - 'comment_added_at': str(comment_post.added_at.replace(microsecond = 0)), + 'comment_added_at': str(comment_post.added_at.replace(microsecond = 0)) + tz, 'html': comment_post.html, 'user_display_name': comment_post.author.username, 'user_url': comment_post.author.get_profile_url(), -- cgit v1.2.3-1-g7c22