List of usage examples for java.sql Date getTimezoneOffset
@Deprecated public int getTimezoneOffset()
From source file:org.siphon.jssql.SqlExecutor.java
private Timestamp dateToTimeStamp(java.util.Date date) { if (this.isPostgreSQL()) { return new java.sql.Timestamp(date.getTime() + date.getTimezoneOffset() * 60000); } else {/*from w w w .j a v a 2s . c o m*/ return new java.sql.Timestamp(date.getTime()); } }