Java JDBC: dates consistently two days off

前端 未结 9 1850
孤城傲影
孤城傲影 2020-12-14 16:53

I am using Java JDBC to write a date to SQL server 2008 and then read it back.
The date that is read back is consistently two days earlier than the date that was actuall

9条回答
  •  太阳男子
    2020-12-14 17:11

    If you are using MSSQL 2015, use this Sqljdbc41 to fix this issue

     
    
        com.microsoft.sqlserver
        sqljdbc41
        6.0.8112
    
    

提交回复
热议问题