Skip to content

Timezone fix #117

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

Merged
merged 2 commits into from
Sep 2, 2013
Merged

Timezone fix #117

merged 2 commits into from
Sep 2, 2013

Conversation

jamesharr
Copy link
Contributor

Bug fix -- Convert to DB timezone when inserting time.Time objects. Previous code would serialize time in the object's time zone, not the DB connection's time zone. See regression test for details.

Also, fixed cosmetic bug with CONCURRENT tests.

@julienschmidt
Copy link
Member

Thanks!

Can you adapt the test for the current git master, please?
runTests has no name parameter anymore: https://travis-ci.org/go-sql-driver/mysql/jobs/10774137
I'd suggest to put the range loop in the function closure, so that effectively runTests is executed only once.

@julienschmidt
Copy link
Member

Sorry, forget the last part. You want a different DSN every time

@jamesharr
Copy link
Contributor Author

Hah, should be fixed now. I have no idea how I ended starting from a commit that old (I just checked out the code yesterday).

@julienschmidt
Copy link
Member

LGTM now.
Any concerns about this change, @arnehormann ?

Also, include this change in #118

@arnehormann
Copy link
Member

LGTM

julienschmidt added a commit that referenced this pull request Sep 2, 2013
[FIX] Timezone fix
Convert to DB timezone when inserting time.Time
@julienschmidt julienschmidt merged commit d40f2bc into go-sql-driver:master Sep 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants