Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MySQL] Investigate timezone parameter setting for update Connector/J #115

Open
hiroyuki-sato opened this issue Jun 24, 2017 · 0 comments
Open

Comments

@hiroyuki-sato
Copy link
Member

I posted a question to MySQL Forums Connector/JDBC and Java about timezone parameters. It's moderated forum. It does not show yet on listing page.

contents.

Hello, members.

I would like to know the best practice.
Could you tell me what parameters I should set?

Parameters

  • useLegacyDatetimeCode
  • serverTimeZone
  • noTimezoneConversionForDateType
  • cacheDefaultTimezone

Environment.

  • Client and server time zones differ. (ex. Server: UTC, Client Asia/Tokyo)
  • Client and server time zones are the same. (ex. Server and Client is Asia/Tokyo).

It worked as I expected in the Connector/J version 5.1.34.

  • Client and server time zones differ.

    • useLegacyDatetimeCode: false
    • serverTimeZone: UTC
  • Client and server time zones are the same.

    • no options

The noTimezoneConversionForDateType and cacheDefaultTimezone introduced in the 5.1.35.
But I can't find those parameters combination settings.

https://dev.mysql.com/doc/relnotes/connector-j/5.1/en/news-5-1-35.html

noTimezoneConversionForDateType and cacheDefaultTimezone:
For improving Connector/J's time zone support;
see the changelog entry for Bug #18028319/Bug #71084 below for details

Best regards

--
Hiroyuki Sato.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant