Comments (11)
Did you solved this problem?
from jadira.
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.
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.
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.
I agree: when in doubt, it would be nice to be able to decide which is the lesser evil.
from jadira.
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.
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.
This isn't fixed in 4.0.0.GA, is it?
from jadira.
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.
Closing this due to inactivity - I assume my last commit addressed the issue
from jadira.
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)
- Switch to using MetadataContributor or TypeContributor for contributing types HOT 1
- DateTime Column with @Version attribute HOT 3
- Persisting FastMoney in JPA truncates amount
- Migrate from Jadira 7.0.0.CR1 to Java 17 HOT 3
- Cannot resolve method 'withZone' in 'OffsetDateTime'
- weld-core-parent dependency reference invalid xml
- TimeColumnLocalTimeMapper incorrectly uses "getNano()" HOT 1
- Jadira Usertypes with Java 10 throws java.lang.ArrayIndexOutOfBoundsException on initialisation HOT 7
- Where are lastest versions of Jadira published? HOT 2
- Update Indriya version to 1.2
- Document which version of usertypes is compatible with which version of Hibernate HOT 3
- Incompatible handling of timezones in 7.0.0.CR1 HOT 1
- Hibernate 5.3.7 compatibility HOT 2
- Joda Money 1.0 removes deprecated methods that Jadira uses
- PersistentDateTime mishandles dates that fall in DST HOT 1
- AbstractHeuristicUserType tries to instantiate deprecated TypeResolver with wrong parameters HOT 1
- StringColumnDateTimeMapper throws an Exception when Joda Datetime contains zone offset in hours, not Zone ID
- Conversion from mysql decimal column to curreny YEN fails. HOT 2
- Problem between sql Date and joda LocalDate conversion
- Status of jadira ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jadira.