date time right in app but wrong in mysql [time zone]
问题 Problem: Right time in app server, wrong in database. I am in China, Time Zone is UTC+8 I use hibernate. Entity definition as following (language: Scala) class CargoJournal { @Type(`type`="org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime") var deliverTime: LocalDateTime = _ @Temporal(TemporalType.TIMESTAMP) @Column(nullable=false) var logDate:Date = _ } I open the hibernate log, see following in my app server. Current time is Thu Sep 13 11:08:44 CST 2012 insert into wms_history