I am using a web service and for the city Florianopolis in Brazil I get the following date:
Tue, 06 Nov 2012 5:30 pm LST
Now the timezone "LST" creates a problem to the SimpleDateFormat parser:
// Date to parse
String dateString = "Tue, 06 Nov 2012 5:30 pm LST";
// This parser works with other timezones
SimpleDateFormat LONG_DATE = new SimpleDateFormat("EEE, d MMM yyyy h:mm a zzz");
// Here it throws a ParseException
Date date = LONG_DATE.parse(dateString);
I know that the timezones can be difficult to parse. What do you propose?
Thank you