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-Tag: v0.08121~20^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a1bd45dbd31b75e399346730b1c987d95abdcfc;p=dbsrgits%2FDBIx-Class.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