[Catalyst] Changing format of date field

Hartmaier Alexander alexander.hartmaier at t-systems.at
Wed Jan 8 17:31:19 GMT 2014


On 2014-01-08 18:19, Adam Witney wrote:
>
>
> On 7. 1. 2014 9:55, neil.lunn wrote:
>
>> 3. You *Are* going to get back a string in the raw params. So what you
>> need to do is parse that format into a DateTime object again when
>> submitting back to model or wherever else you want to use it as an
>> object.
>
> Thanks guys for the various suggestions, I think I will follow this
> approach above and leave the format to the view as suggested!
>
> Thanks again
>
> Adam
I have various format_ methods in my view class that are exposed to TT
using View::TT's expose_methods config option including format_date,
format_datetime and format_datetime_ajax.


*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*



More information about the Catalyst mailing list