summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-10 11:34:51 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-10 11:34:51 -0400
commit8b40f808048dd7832ddbdf509219abdfa19d2502 (patch)
tree5feb83ed45edcccfb07602220e16cabce8c0f2fa
parent72020e42a221bdf6d7af1591e0addaac6ba9b2c5 (diff)
downloadaskbot-8b40f808048dd7832ddbdf509219abdfa19d2502.tar.gz
askbot-8b40f808048dd7832ddbdf509219abdfa19d2502.tar.bz2
askbot-8b40f808048dd7832ddbdf509219abdfa19d2502.zip
fixed timezone issue on editing comment
-rw-r--r--askbot/views/writers.py4
1 files changed, 3 insertions, 1 deletions
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(),