Generate Timestamp in IST Timezone java <p>I am trying to generate current timestamp in GMT timezone but it is still getting generated in IST as my machine is set to IST. I am using this code. Please help!!</p> <pre><code>{ String timeZone = "GMT"; Calendar gmtCalendar = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); Date date = gmtCalendar.getTime(); endTime = new Timestamp(date.getTime()); String eTime = NLSUtil.getFormattedDate(AdfUtil.getClientLocale(), new java.sql.Date(endTime.getTime())); } </code></pre>