From: Bryan Beeley Date: Fri, 2 Apr 2010 19:31:34 +0000 (+0000) Subject: - Fix the synopsis for DBIC::Storage::DBI. ->datetime_parser returns a class, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a1bd45dbd31b75e399346730b1c987d95abdcfc;p=dbsrgits%2FDBIx-Class-Historic.git - Fix the synopsis for DBIC::Storage::DBI. ->datetime_parser returns a class, so you need to call a method on it in order to transform a DateTime object --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index a7abffb..1030c4c 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -93,7 +93,7 @@ DBIx::Class::Storage::DBI - DBI storage handler ); $schema->resultset('Book')->search({ - written_on => $schema->storage->datetime_parser(DateTime->now) + written_on => $schema->storage->datetime_parser->format_datetime(DateTime->now) }); =head1 DESCRIPTION