开发者

Grails Date Timestamp

开发者 https://www.devze.com 2023-04-12 10:02 出处:网络
I have mapped a Date field in one of my models. If I store the date everything looks fine in the database but if I read the value I am getting all values -2 hours from the actual date field. The 开发者

I have mapped a Date field in one of my models. If I store the date everything looks fine in the database but if I read the value I am getting all values -2 hours from the actual date field. The 开发者_Go百科field in Mysql is DateTime and I saw in the debugger that grails is converting my Date(util) into sql.Timestamp.

What I am doing wrong here?

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消