I parse time from string in format “HH:mm” with java.text.SimpleDateFormat. For example 10:30 or 22:10
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm");
Date parsed = formatter.parse((String) value);
Formatter time zone is default time zone for my device (Moscow time zone +04:00). Time string is 10:30 and
after parsing i expect 10:30 01/01/1970 in moscow time zone but get 09:30 01/01/1970 instead. What i do wrong? Why i getting this behavior?
From 1931 to 1981, Moscow was UTC+3.
http://www.timeanddate.com/worldclock/timezone.html?n=166&syear=1970
Time-zones change over time, often for political reasons.