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

another fix on parsing invalid dates

parent ef1f342d
No related branches found
No related tags found
1 merge request!1Appointments dev
......@@ -219,7 +219,7 @@ public abstract class SubjectParser {
String tmp[] = result.split("/");
result = tmp[2] + "-" + tmp[1] + "-" + tmp[0];
}
if (result.charAt(2) == '-') {
if (result.length() == 10 && result.charAt(2) == '-') {
String tmp[] = result.split("-");
result = tmp[2] + "-" + tmp[1] + "-" + tmp[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