jooq wrong date from mysql

风流意气都作罢 提交于 2020-01-07 05:02:07

问题


I am using jOOQ to read data from a MySql database. I am reading a column whose type is 'date'. When I print the result set date is wrong. What can be the reason ?

Database Date        =>  2010-08-14
jOOQ result set Date =>  2010-08-13

this is the query =>

f.select()
 .from(dal.jooq.Tables.INVOICES)
 .where(dal.jooq.Tables.INVOICES.CARRIER_ID
   .equal(UInteger.valueOf(carrier_id)))
 .and(dal.jooq.Tables.INVOICES.INVOICE_DATE.greaterOrEqual(sstart))
 .fetch();

来源:https://stackoverflow.com/questions/12156877/jooq-wrong-date-from-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!