[Dbix-class] InflateColumn::DateTime

Jonas jonas.alves at gmail.com
Thu Aug 10 19:11:18 CEST 2006


When i change the date in the db to '2000-02-02 10:00:00'
the regex that it tries is '(?-xism:^(\d{1,4})-(\d\d)-(\d\d)$)' and
when i change the date to '2000-02-02' it tries this regex
'(?-xism:^(\d{1,4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)$)'

Does anyone knows why it tries always the wrong regex?

--Jonas

On 10/08/06, Jonas <jonas.alves at gmail.com> wrote:
> Hi,
> I'm trying to use InflateColumn::DateTime but i'm getting the
> following error when dbic tries to deflate a date from the db:
> DVDzbr::Controller::Dvd->list "Invalid date format: 2000-02-02 at
> /Library/Perl/5.8.6/Catalyst.pm line 1143
>
> I think the date is in the correct format. Am i doing something wrong?
>
> Thanks,
> --Jonas
>



More information about the Dbix-class mailing list