Commit d74e0f0b authored by Frank Bergmann's avatar Frank Bergmann

- Parsing date is more permissive now

parent b39e58a7
......@@ -221,6 +221,11 @@ ad_proc -public im_csv_import_parser_date_european {
if {1 == [string length $month]} { set dom "0$month" }
return [list "$year-$month-$dom" ""]
}
if {[regexp {^(.+)\/(.+)\/(....)$} $arg match dom month year]} {
if {1 == [string length $dom]} { set dom "0$dom" }
if {1 == [string length $month]} { set dom "0$month" }
return [list "$year-$month-$dom" ""]
}
return [list "" "Error parsing European date format '$arg': expected 'dd.mm.yyyy'. If the error remains, try to import ANSI dates (2015-01-01) and set parser to 'No change'"]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment