de-bodged CultureInfo handling
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pecha 2020-09-27 16:36:48 +10:00
parent 1682b4265e
commit c3eb30b4c8

View file

@ -100,7 +100,7 @@ namespace BunyMuny {
case Bank.NAB: case Bank.NAB:
value = decimal.Parse(csv.GetField(1)); value = decimal.Parse(csv.GetField(1));
(category, description) = MatchAgainstRules(rules, csv.GetField(5)); (category, description) = MatchAgainstRules(rules, csv.GetField(5));
date = DateTime.ParseExact(csv.GetField(0), "dd MMM yy", CultureInfo.CurrentCulture); date = DateTime.ParseExact(csv.GetField(0), "dd MMM yy", CultureInfo.GetCultureInfoByIetfLanguageTag("en-AU"));
originalDescription = csv.GetField(5); originalDescription = csv.GetField(5);
break; break;
@ -164,7 +164,6 @@ namespace BunyMuny {
return (rule.Category, rule.Description); return (rule.Category, rule.Description);
} }
} }
return (null, null); return (null, null);
} }
} }