diff --git a/lib/pool.js b/lib/pool.js index b85a67383..5b9fc2d44 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -48,7 +48,10 @@ var pools = { } }); client.poolCount = 0; - return cb(null, client); + client.query("SET SESSION TIME ZONE 'Australia/Sydney'", function(tz_err) { + if(tz_err) return cb(tz_err, null); + return cb(null, client); + }); }); }, destroy: function(client) {