问题
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