I had strange behavior when parsing dates. Considering,
DateFormat sdf= new SimpleDateFormat("dd/MM/yyyy");
sdf.parse("25/10/2014")returns October 25, 2014 00:00:00 BST
and
sdf.parse("27/10/2014")returns October 27, 2014 00:00:00 GMT
I realized that due to the change in Daylight Time, but of course I expected the same time zone to be returned by the same parser. Or am I wrong?
source
share