SimpleDateFormat behaves differently in different timezones JVM
问题 I am following the below code to create a Date object on specified dateTime with a specified Timezone. Note: I haven't set any timezone for jvm; But testing this code with different linux server timezones. String date = "20121225 10:00:00"; String timeZoneId = "Asia/Calcutta"; TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); DateFormat dateFormatLocal = new SimpleDateFormat("yyyyMMdd HH:mm:ss z"); //This date object is given time and given timezone java.util.Date parsedDate =