summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-09 17:18:34 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-09 17:18:34 -0400
commit4856a77e634aba169aae0db9861e1737049faff6 (patch)
tree7f88919d6825f11754dcfa36609ba4c62525c389
parentbea37ea9663c5e827adb22d4dc0f001ab051a360 (diff)
downloadaskbot-4856a77e634aba169aae0db9861e1737049faff6.tar.gz
askbot-4856a77e634aba169aae0db9861e1737049faff6.tar.bz2
askbot-4856a77e634aba169aae0db9861e1737049faff6.zip
fixed the timezone issue in the newly posted comments
-rw-r--r--askbot/views/writers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/askbot/views/writers.py b/askbot/views/writers.py
index c77c874f..7727eb04 100644
--- a/askbot/views/writers.py
+++ b/askbot/views/writers.py
@@ -540,9 +540,10 @@ def __generate_comments_json(obj, user):#non-view generates json data for the po
comment_owner = comment.author
+ tz = template_filters.TIMEZONE_STR
comment_data = {'id' : comment.id,
'object_id': obj.id,
- 'comment_added_at': str(comment.added_at.replace(microsecond = 0)),
+ 'comment_added_at': str(comment.added_at.replace(microsecond = 0)) + tz,
'html': comment.html,
'user_display_name': comment_owner.username,
'user_url': comment_owner.get_profile_url(),