Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge djmitche/build-relengapi:issue202 (PR #202)
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Apr 2, 2015
2 parents 09c7c1b + 0a58c18 commit b10546c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relengapi/lib/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def process_bind_param(self, value, dialect):
# to a naive Python datetime. Passing it a tz-aware datetime
# causes a warning ("Out of range value for column .."), so we make
# it naive.
if dialect == 'mysql':
if dialect.name == 'mysql':
value = value.replace(tzinfo=None)
# else assume UTC
return value
Expand Down

0 comments on commit b10546c

Please sign in to comment.