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)
agranig/rest
Gerhard Jungwirth 12 years ago committed by Andreas Granig
parent 83a4085255
commit f11ae484ef

@ -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