I think this line:
|
offsetSecs += _parse2D(dateStr, end-2); |
should be:
offsetSecs += _parse2D(dateStr, end-2) * 60;
As StdFormat.parse currently fails to parse this string "2017-04-25T13:31:02-0730":
new StdDateFormat().parse("2017-04-25T13:31:02-0730") => Tue Apr 25 16:31:32 EDT 2017
but it should be "Tue Apr 25 21:01:02 EDT 2017".