阅读背景:

来自DB的hibernate映射中的Java日期(时区问题和夏令时)

来源:互联网 

I have read many answers on similar question but still can't understand the whole logic. My aim is to handle date (including time, not just year month etc) inside of my application and consider the daylight savings time shift and server's timezone as well. I am using hibernate and postgresql db. My mistake was to use java.util.Date type for all the dates coming from DB. Soon I realized that it doesn't contain timezone information. Now the question arises, how to use correct Date (daylight and timezone considered)?I have read many answers on similar question bu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: