You seem to be mixing patterns for z
and z
. If you ignore (FLE Daylight Time)
, since this is the same information as in GMT+0300
, the problem becomes that SimpleDateFormat
wants either GMT +0300
or GMT+03:00
. The latter option can be analyzed as follows:
String time = "Sun Jul 15 2012 12:22:00 GMT+03:00 (FLE Daylight Time)"; SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd yyyy HH:mm:ss zzz"); Date date = sdf.parse(time);
[EDIT]
In light of other messages about the operation of their timelines, this is probably due to the fact that your timeline contains conflicting information or mixed formats.
source share