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:
andreas.schildbach@gmail.com 2011-05-09 08:59:48 +00:00
parent f5a7ca06dd
commit 19fc4d97bd

View file

@ -271,7 +271,7 @@ public final class ParserUtils
if (!m.matches())
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.DAY_OF_MONTH, Integer.parseInt(m.group(3)));
}