Skip to content

Commit b1d31e8

Browse files
committed
Update pool.js
1 parent 715e500 commit b1d31e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/pool.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ var pools = {
4848
}
4949
});
5050
client.poolCount = 0;
51-
return cb(null, client);
51+
client.query("SET SESSION TIME ZONE 'Australia/Sydney'", function(tz_err) {
52+
if(tz_err) return cb(tz_err, null);
53+
return cb(null, client);
54+
});
5255
});
5356
},
5457
destroy: function(client) {

0 commit comments

Comments
 (0)