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
Timezone support #43
Comments
IMO this should be done at a higher level But I'd be interested to see the argument for including in this package. Do other low-level MySQL libraries do this? |
This library handles time zone. |
I'd be interested to know how MySQL gives back a |
Ah, after looking into this more I see that MySQL is not capable of storing time zones alongside the data (PostgreSQL is, which is what confused me). The server has a global time zone and that is it. I also looked into novi/mysql-swift more and it seems like they are not actually fetching the MySQL Server's time zone. You set the time zone when you create a connection, and all I think to add proper timezone support in this package, Once set, all |
Date
Closing this out as not relevant at this point. |
Currently it seems
Date
is encoded/decoded as GMT+00:00.encode/decode
Now I want to store date as local time zone. So I want to make the
TimeZone
s above configurable.There are two way to accomplish this.
TimeZone
viaMySQLDatabaseConfig
MySQLConnection.authenticate
and use itEitherway we must provide time zone to
convertFromMySQLTime
andconvertToMySQLTime
.Any ideas?
The text was updated successfully, but these errors were encountered: