I have the following date string: 2011-09-06T22:02:57-04:00
. The problem is the timezone, -04:00. The Java7 docs say I can use XXX
to magically match this timezone string: http://download.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
The problem is that Groovy does not support the X
character, presumably because it's not using JDK7 yet. The z
character doesn't work because it isn't GMT-07:00
, only -07:00
What is the easiest way to parse this timezone?
-tjw