$self->controller->track_progress(progress => 10);
- my $old_numberformat = $::myconfig{numberformat};
- $::myconfig{numberformat} = $self->controller->profile->get('numberformat');
+ local $::myconfig{numberformat} = $self->controller->profile->get('numberformat');
+ local $::myconfig{dateformat} = $self->controller->profile->get('dateformat');
$self->csv->parse;
$self->fix_field_lengths;
$self->controller->track_progress(progress => 100);
-
- $::myconfig{numberformat} = $old_numberformat;
}
sub add_columns {
escape_char => '"',
charset => 'CP850',
numberformat => $::myconfig{numberformat},
+ dateformat => $::myconfig{dateformat},
duplicates => 'no_check',
);
</td>
</tr>
+ <tr>
+ <th align="right">[%- LxERP.t8('Date Format') %]:</th>
+ <td colspan="10">
+ [% L.select_tag('settings.dateformat', ['dd.mm.yyyy', 'yyyy-mm-dd', 'dd/mm/yyyy', 'mm/dd/yyyy' ], default = SELF.profile.get('dateformat'), style = 'width: 300px') %]
+ </td>
+ </tr>
+
<tr>
<th align="right">[%- LxERP.t8('Charset') %]:</th>
<td colspan="10">[% L.select_tag('settings.charset', SELF.all_charsets, default = SELF.profile.get('charset'), style = 'width: 300px') %]</td>