I use a web service, and for the city of Florianopolis in Brazil I get the following date:
Tue, 06 Nov 2012 5:30 pm LST
Now the βLSTβ time zone poses a problem for parsing SimpleDateFormat:
// 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 time zones can be hard to make out. What are you offering?
thanks
source share