diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-10 11:41:58 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-10 11:41:58 -0400 |
commit | f2b36a4fcbc8c5688e599bc3fabc1c60a1b657c3 (patch) | |
tree | d81f8a08832fbf7cc7df0f68eef7e9a10203f1a9 | |
parent | 72020e42a221bdf6d7af1591e0addaac6ba9b2c5 (diff) | |
download | askbot-f2b36a4fcbc8c5688e599bc3fabc1c60a1b657c3.tar.gz askbot-f2b36a4fcbc8c5688e599bc3fabc1c60a1b657c3.tar.bz2 askbot-f2b36a4fcbc8c5688e599bc3fabc1c60a1b657c3.zip |
fixed timezone bug on edit comment
-rw-r--r-- | askbot/views/writers.py | 3 |
1 files changed, 2 insertions, 1 deletions
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(), |