We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adaf62b commit 3449989Copy full SHA for 3449989
lib/DBIx/Class/InflateColumn/DateTime.pm
@@ -246,6 +246,12 @@ sub _post_inflate_datetime {
246
247
$dt->set_time_zone($info->{timezone}) if defined $info->{timezone};
248
$dt->set_locale($info->{locale}) if defined $info->{locale};
249
+ my $f = defined $info->{formatter} && $info->{formatter}
250
+ || $ENV{DBIC_AUTOSET_DATETIME_FORMATTER} && 'auto';
251
+ if( $f ) {
252
+ $f = $f eq 'auto' ? $self->_datetime_parser : $f;
253
+ $dt->set_formatter( $f );
254
+ }
255
256
return $dt;
257
}
0 commit comments