mysql-connector-java update from 5 to 6 causes a timeshift -


in our java(1.8) / hibernate(4.3.2) / mysql (5.6.29-76.2) application using mysql-connector-java 5.1.40. timezones servers(java, mysql) utc. when in application inserting datetimes '2016-10-26 08:00:00' db, saved correctly '2016-10-26 08:00:00'. after upgrading mysql-connector-java 6.0.4, following behavior: in java code insert '2016-10-26 08:00:00', in db '2016-10-26 13:00:00', when select values in java app correct '2016-10-26 08:00:00' value. however, saved values shifted past.

so far, have no idea, causing shift. ideas?

update after running multiple tests time zones, have noticed following:

timezones servers(java, mysql) utc. wrong, , in fact bst(british summer time)

other time zones (cest, utc, gmt+6, asia/almaty, gmt-6 etc.. ) working fine, bst causes shifts. so, make conclusion there's bug related bst time-zone in mysql-connector. workaround - switching other time zones.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -