fix format time in comments viewlet.
svn path=/plone.app.discussion/trunk/; revision=27205
This commit is contained in:
parent
9a91b6f9ed
commit
087c428e3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user