From b1d31e825bdfd44ac21080aaf8dd248af9e9eaaf Mon Sep 17 00:00:00 2001 From: Timothy D Date: Wed, 12 Aug 2015 13:51:44 +1000 Subject: [PATCH] Update pool.js --- lib/pool.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {