Yesterday, the BI project team encountered a very strange problem. The date type value returned from the database was automatically deducted for two days when it was returned to java.
There is no problem with the same date and time type.
For example, the result obtained from the query analyzer is 2014/02/28. This value is automatically changed to 2014/02/26 in java.
Error display result:
Correct display result:
The date of the database server/AP server is normal.
There are no similar cases for Google and Baidu search. (The time difference is several hours)
We had to temporarily convert the returned results of BI involving dates into strings for processing.
The returned results of some stored procedures are also directly added for 2 days.
---------------------------------------------------------------------------------
After repeated investigations today, we found that the problem was caused by the sqljdbc4.jar package.
The java Development Team uploaded the local sqljdbc4.jar package by mistake when uploading the zip jar package.
The local sqljdbc4.jar package is freely downloaded from the internet ......