[Catalyst] Dealing with timestamps from Postgres

will trillich will.trillich at serensoft.com
Thu Nov 3 15:38:46 GMT 2011


On Thu, Nov 3, 2011 at 12:36 PM, Tomas Doran <bobtfish at bobtfish.net> wrote:

> Another option is to *add a 'format_date' method to your view*, and use
> the *expose_methods *config setting for View::TT..
>
> In your TT code you'd then say [% WHILE (row =3D mydata_rs.next);
> format_date(row.my_date_field)**; END %]
>

</lurk>Interesting...

Aha, that's what *
http://search.cpan.org/~mstrout/Catalyst-View-TT-0.37/lib/Catalyst/View/TT.=
pm#expose_methods
* is talking about. Hadn't noticed that before.

Neat!

-- =

"The very nucleus of Character: to do what you know you should do, when you
don't want to do it." Stephen Covey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20111103/c1c6f=
d38/attachment.htm


More information about the Catalyst mailing list