long date2Millis = date1Millis - tz1RawOffset; return new Date(date2Millis); } /** * toDate - Convert GMT Date, gmtDate, to a date of TimeZone, tz * @return Date */ public static Date toDate(Date gmtDate, TimeZone tz) { GregorianCalendar cal = new GregorianCalendar(tz); long dateMillis = gmtDate.getTime(); int tzRawOffset = tz.getOffset(dateMillis); int tzRawOffset = tz.getOffset(cal.get(Calendar.ERA), cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.DAY_OF_WEEK), cal.get(Calendar.MILLISECOND)); long rtnDateMillis = ...