MT#16777 Properly set start/end time on csv upload

Change-Id: I57847f2c485c6a8114716eb3907e2325013a8b40
changes/19/5419/1
Andreas Granig 10 years ago
parent 82a58bde80
commit e4e6f53dbe

@ -53,7 +53,13 @@ sub upload_csv {
$carriers{$k} = $carrier->id;
}
$row->{start} ||= undef;
if($row->{start} && $row->{start} =~ /^\d{2}:\d{2}:\d{2}$/) {
$row->{start} .= 'T00:00:00';
}
$row->{end} ||= undef;
if($row->{end} && $row->{end} =~ /^\d{2}:\d{2}:\d{2}$/) {
$row->{end} .= 'T23:59:59';
}
push @numbers, [$carriers{$k}, $row->{number}, $row->{routing_number}, $row->{start}, $row->{end}];
if($linenum % $chunk_size == 0) {

Loading…
Cancel
Save