fix format time in comments viewlet.

svn path=/plone.app.discussion/trunk/; revision=27205
This commit is contained in:
Timo Stollenwerk 2009-05-29 06:32:03 +00:00
parent 9a91b6f9ed
commit 087c428e3e
1 changed files with 1 additions and 4 deletions

View File

@ -74,10 +74,7 @@ class CommentsViewlet(ViewletBase):
return '%s/login_form?came_from=%s' % (self.navigation_root_url, url_quote(self.request.get('URL', '')),)
def format_time(self, time):
# TODO: to localized time not working!!!
#util = getToolByName(self.context, 'translation_service')
#return util.ulocalized_time(time, 1, self.context, domain='plonelocales')
return time
return self.context.restrictedTraverse('@@plone').toLocalizedTime(time, long_format=True)
class AddComment(BrowserView):
"""Add a comment to a conversation