<p>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?</p>

<p>Lets say you have a query:</p>

<pre><code>Query q = session.createQuery("from Table where date_field &lt; :now");
q.setDate("now", new java.util.Date());
</code></pre>

<p>"now" will be set to GMT time, while "new Date()" gets your current server time.</p>

<p>Thanks.</p>

Hibernate is ignorant of timezones. Any timezone conversion should be done prior to executing the query.
E.g., if your database server is set to CST, but the user is on EST, you'll need to add 1 hour to any timestamps which are the input to a query.