[hibernate-users] TimestampType converts to localtime?

Robert Nicholson robert.nicholson at gmail.com
Mon Mar 31 20:04:02 EDT 2008


So,

if the default timezone for my vm is say CST

and I parse a date that's in GMT using a SimpleDateFormat ('z') and  
get a Date object. That gives me a Date ie. timestamp.

If I want to store that via TimestampType to the database will it  
store the time in local/default timezone and not GMT?

Do I have to write my own CustomType if I do not wish it to store the  
time as a local time?

If I want to store the time as UTC do I have to use a Calendar in the  
user defined type that converts the Date to UTC?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-users/attachments/20080331/b935ca65/attachment.html 


More information about the hibernate-users mailing list