When you assign a date to a named SQL parameter Hibernate automatically converts it to GMT time. How do you make it use the current server timezone for all dates?
Lets say you have a query:
Query q = session.createQuery("from Table where date_field < :now"); q.setDate("now", new java.util.Date());
"now" will be set to GMT time, while "new Date()" gets your current server time.