From: Rafael Kitover Date: Sat, 11 Jul 2009 09:26:40 +0000 (+0000) Subject: reword IC::DT doc patch X-Git-Tag: v0.08109~87 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8bf37b16729d6f5e2bf5f583a91d6f032a27a1f4;p=dbsrgits%2FDBIx-Class.git reword IC::DT doc patch --- diff --git a/lib/DBIx/Class/InflateColumn/DateTime.pm b/lib/DBIx/Class/InflateColumn/DateTime.pm index 25ed7e7..fbdccbc 100644 --- a/lib/DBIx/Class/InflateColumn/DateTime.pm +++ b/lib/DBIx/Class/InflateColumn/DateTime.pm @@ -51,10 +51,11 @@ It's also possible to explicitly skip inflation: starts_when => { data_type => 'datetime', inflate_datetime => 0 } ); -NOTE: Don't rely on C to validate user input, this -may have unexpected security implications. Instead, use an input parser to -create a DateTime object. For instance, if your user input comes as a -'YYYY-MM-DD' string, you can use C thusly: +NOTE: Don't rely on C to parse date strings for you. +The column is set directly for any non-references and C +is completely bypassed. Instead, use an input parser to create a DateTime +object. For instance, if your user input comes as a 'YYYY-MM-DD' string, you can +use C thusly: use DateTime::Format::ISO8601; my $dt = DateTime::Format::ISO8601->parse_datetime('YYYY-MM-DD');