Skip to content
Snippets Groups Projects
Commit 94972bd7 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

another fix on strange date entries

parent bc6fda6e
No related branches found
No related tags found
1 merge request!1Appointments dev
...@@ -212,7 +212,8 @@ public abstract class SubjectParser { ...@@ -212,7 +212,8 @@ public abstract class SubjectParser {
result = result.replaceAll("cot", "08"); result = result.replaceAll("cot", "08");
result = result.replaceAll("sep", "09"); result = result.replaceAll("sep", "09");
result = result.replaceAll("oct", "10"); result = result.replaceAll("oct", "10");
if (result.length() < 10) { if (result.length() != 10) {
logger.warn("Invalid date. Ignoring: " + result);
result = defaultDateString; result = defaultDateString;
} }
if (result.indexOf("/") >= 0) { if (result.indexOf("/") >= 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment