Code Monkey home page Code Monkey logo

Comments (11)

joeydaowang avatar joeydaowang commented on July 26, 2024

Did you solved this problem?

from jadira.

chrisphe avatar chrisphe commented on July 26, 2024

Try 5.1.5 driver (its a typo). Also can you try jadira 3.1.0-CR8. Would like to know how this works for you (as I may reintroduce the behaviours from that version).

from jadira.

fxnn avatar fxnn commented on July 26, 2024

We're also facing those problems. And yes, in jadira-3.1.0-CR8 javaZone and databaseZone were respected. (Though it had this #5 DST problem, which renders it unusable for us.)

from jadira.

chrisphe avatar chrisphe commented on July 26, 2024

There is not a good solution due to the flaws of JDBC, but I can give the option to configure which of the two behaviours to use which is what I am thinking currently. Open to user suggestions on this.

from jadira.

fxnn avatar fxnn commented on July 26, 2024

I agree: when in doubt, it would be nice to be able to decide which is the lesser evil.

from jadira.

chrisphe avatar chrisphe commented on July 26, 2024

Also the handling with either method is not consistent across databases or even revisions of databases. Its a torrid mess when it comes to timezones and JDBC

from jadira.

chrisphe avatar chrisphe commented on July 26, 2024

Should just mention about the useLegacyDatetimeCode=false connection parameter. See the answer to this question https://stackoverflow.com/questions/7605953/how-to-change-mysql-timezone-in-java-connection

from jadira.

PiotrMachner avatar PiotrMachner commented on July 26, 2024

This isn't fixed in 4.0.0.GA, is it?

from jadira.

chrisphe avatar chrisphe commented on July 26, 2024

With MySQL it is recommended to pass the connection parameters "zeroDateTimeBehavior=convertToNull&useLegacyDatetimeCode=false". Can you confirm you are using these. Have you been using these parameters?

from jadira.

chrisphe avatar chrisphe commented on July 26, 2024

Closing this due to inactivity - I assume my last commit addressed the issue

from jadira.

fxnn avatar fxnn commented on July 26, 2024

Hey @chrisphe, using the given connection parameters indeed solved our problem. Sorry for not reporting back, and thank you for your support here!

from jadira.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.