Fixed date split regex
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
b78eebb515
commit
b12e921efe
|
@ -89,7 +89,7 @@ public class Date {
|
||||||
return _dates.get(date);
|
return _dates.get(date);
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] elements = date.split(".");
|
String[] elements = date.split("\\.");
|
||||||
Date newDate = new Date();
|
Date newDate = new Date();
|
||||||
newDate.set_dateID(Integer.parseInt(elements[2] + elements[1] + elements[0]));
|
newDate.set_dateID(Integer.parseInt(elements[2] + elements[1] + elements[0]));
|
||||||
newDate.set_day(Integer.parseInt(elements[0]));
|
newDate.set_day(Integer.parseInt(elements[0]));
|
||||||
|
|
Loading…
Reference in New Issue