When I look at the Creation time and Modification time in any of the
container views, it shows me the UTC time.
zope.app.container.browser.contents.py: Line 174
I found that:
formatter = self.request.locale.dates.getFormatter(
created = self.safe_getattr(dc, 'created', None)
if created is not None:
info['created'] = formatter.format(created)
modified = self.safe_getattr(dc, 'modified', None)
if modified is not None:
info['modified'] = formatter.format(modified)
is being used to compute them.
I am puzzled, how does the browser set its locale? I guess this must be a
very basic question. But I am not able to figure it out.
Could anyone please explain?
Zope3-users mailing list