- Fix the synopsis for DBIC::Storage::DBI. ->datetime_parser returns a class,
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI.pm
index a7abffb..1030c4c 100644 (file)
@@ -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