
bret at pectopah
Jun 10, 2010, 7:23 AM
Post #8 of 10
(865 views)
Permalink
|
Hi Zdravko, I've always used DateTime directly to format dates, like this: $date = DateTime->from_epoch( epoch => $story->get_cover_date('%s'), locale => $locale ); Then output $date with the format of your choice.: <% $date->strftime($format) %> Hope this helps, Bret On Thu, 2010-06-10 at 08:34 +0200, Zdravko Balorda wrote: > > Hi, > > I am having a bit of trouble setting LC_ALL: > % use POSIX; > % use locale; > % setlocale(LC_ALL, "sl_SI.UTF-8"); > > works ok, (I've checked it in perl) but > Bricolage construct > <% $story->get_cover_date($datef) %> locale <% setlocale(LC_ALL) %> > seems to ignore it and keeps writing English dates. > > Any hint? > Regards, Zdravko > > -- Bret Dawson Producer Pectopah Productions Inc. (416) 895-7635 bret [at] pectopah www.pectopah.com
|