Skip to content

Commit

Permalink
Fix forced UTC for legacyUtcDateProcessing
Browse files Browse the repository at this point in the history
Attempt to set s.timezone = 'Z',
but options.timezone are passed to mysqljs/mysql
  • Loading branch information
bbito authored and ssh24 committed Apr 25, 2017
1 parent b678d16 commit 85d3d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mysql.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function generateOptions(settings) {
}
// Legacy UTC date processing fallback credit: @darknos
if (s.legacyUtcDateProcessing === undefined) s.legacyUtcDateProcessing = true;
if (s.legacyUtcDateProcessing) s.timezone = 'Z';
if (s.legacyUtcDateProcessing) options.timezone = 'Z';
}
return options;
}
Expand Down

0 comments on commit 85d3d4c

Please sign in to comment.