I have a field of type 'datetime' in a MySQL (5.0) table but when I persist any date/time information, the time is off by one hour in the database but when I print out the information about the object that was persisted, it shows the correct date/time until I re-load it from the database. Is there someplace in the mapping file I need to specify a TimeZone converter or setting? It almost seems like it's a DST shift..
My table is mapped as:
<class name="Event" table="EVENTS">
...
<property name="date" type="timestamp" column="STARTDATETIME"/>.
</class>
When I create a new Event object, I call 'setStartDateTime' with a Timestamp value and the value is correct. I persist the newly created object and then when I look into the database, the time is always one hour behind..
Thanks,
Justin
|