You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import-DbaCsv - Fix Culture+DateTimeFormats on Linux/ICU (issue #10338)
Root cause: DateTime.ParseExact treats unescaped ':' in format strings
as a placeholder for the culture's TimeSeparator. On Linux with ICU,
de-CH has TimeSeparator='.' so 'HH:mm:ss' would expect '17.09.41' but
CSV data uses '17:09:41', causing a CSV parse error.
Also avoided using $dtf.ShortDatePattern/$dtf.LongTimePattern directly
as these differ between Windows (NLS) and Linux (ICU). Instead derive
from stable primitives: DateSeparator + date-order from ShortDatePattern.
Fix: escape time colons as HH':'mm':'ss for literal ':' matching, and
construct date pattern from DateSeparator + detected day/month order.
(do Import-DbaCsv)
Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
0 commit comments