diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-09 17:18:34 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-09 17:18:34 -0400 |
commit | 4856a77e634aba169aae0db9861e1737049faff6 (patch) | |
tree | 7f88919d6825f11754dcfa36609ba4c62525c389 | |
parent | bea37ea9663c5e827adb22d4dc0f001ab051a360 (diff) | |
download | askbot-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.py | 3 |
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(), |