From 8b40f808048dd7832ddbdf509219abdfa19d2502 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 10 May 2012 11:34:51 -0400 Subject: fixed timezone issue on editing comment --- askbot/views/writers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/askbot/views/writers.py b/askbot/views/writers.py index 7727eb04..995b878e 100644 --- a/askbot/views/writers.py +++ b/askbot/views/writers.py @@ -604,10 +604,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