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

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