mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
fixed parsing of iso dates
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@632 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
f5a7ca06dd
commit
19fc4d97bd
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ public final class ParserUtils
|
||||||
if (!m.matches())
|
if (!m.matches())
|
||||||
throw new RuntimeException("cannot parse: '" + str + "'");
|
throw new RuntimeException("cannot parse: '" + str + "'");
|
||||||
|
|
||||||
calendar.set(Calendar.YEAR, Integer.parseInt(m.group(3)));
|
calendar.set(Calendar.YEAR, Integer.parseInt(m.group(1)));
|
||||||
calendar.set(Calendar.MONTH, Integer.parseInt(m.group(2)) - 1);
|
calendar.set(Calendar.MONTH, Integer.parseInt(m.group(2)) - 1);
|
||||||
calendar.set(Calendar.DAY_OF_MONTH, Integer.parseInt(m.group(3)));
|
calendar.set(Calendar.DAY_OF_MONTH, Integer.parseInt(m.group(3)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue