MT#3917 do not alter datetime objects from schema

this is now correctly handled in the schema (it gives us localtime, so
we do not have to do anything)
gjungwirth/fix_tests
Gerhard Jungwirth 12 years ago
parent aeb79765d9
commit f6f4e33c6b

@ -176,7 +176,6 @@ sub _prune_row {
next;
}
if(blessed($v) && $v->isa('DateTime')) {
$v->add(seconds => DateTime::TimeZone->new(name => 'local')->offset_for_datetime($v));
$row{$k} = $v->ymd('-') . ' ' . $v->hms(':');
$row{$k} .= '.'.$v->millisecond if $v->millisecond > 0.0;
}

Loading…
Cancel
Save