We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84ace46 + 4c02e0e commit 9c7d827Copy full SHA for 9c7d827
.travis.yml
@@ -3,3 +3,4 @@ node_js:
3
- 0.4
4
- 0.6
5
- 0.8
6
+ - 0.10
test/integration/connection/test-timezones.js
@@ -33,6 +33,12 @@ function testNextDate() {
33
function testDate(offset, cb) {
34
var dt = new Date();
35
36
+ // datetime will round fractional seconds up, which causes this test to fail
37
+ // depending on when it is executed. MySQL 5.6.4 and up supports datetime(6)
38
+ // which would not require this change.
39
+ // http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
40
+ dt.setMilliseconds(0);
41
+
42
if (offset == 'Z' || offset == 'local') {
43
connection.config.timezone = offset;
44
} else {
0 commit comments