[Catalyst] Dealing with timestamps from Postgres

Adam Jimerson vendion at gmail.com
Thu Nov 3 15:47:47 GMT 2011


On Thu, Nov 3, 2011 at 11:38 AM, will trillich
<will.trillich at serensoft.com>wrote:

> 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/T=
T.pm#expose_methods
> * is talking about. Hadn't noticed that before.
>
> Neat!
>

Agreed thanks for pointing that out, I might try that out once I get a
chance to play around with my app again
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20111103/9ac4f=
5c4/attachment.htm


More information about the Catalyst mailing list