[html-formfu] Calculating a DateTime using a custom inflator

Mike Glen mike.glen at mindsweep.net
Thu Apr 30 12:37:47 GMT 2009


Mike Glen wrote:
> package MyCustomInflator::EndDate;
>
> use strict;
> use base 'HTML::FormFu::Inflator::DateTime';
>
> sub new {
>    my $self = shift->SUPER::new( @_ );
>    return $self;
> }
>
Solved: I need to add $self->parser( { strptime => '%d-%m-%Y %H:%M' } );
to the new method





More information about the HTML-FormFu mailing list