Skip to content

Commit d0ea1d9

Browse files
Buck BitoBuck Bito
Buck Bito
authored and
Buck Bito
committed
Legacy UTC date processing fallback credit: @darknos
1 parent a59dad7 commit d0ea1d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/mysql.js

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ function generateOptions(settings) {
152152
options[p] = s[p];
153153
}
154154
}
155+
// Legacy UTC date processing fallback credit: @darknos
156+
if (s.legacyUtcDateProcessing === undefined) s.legacyUtcDateProcessing = true;
157+
if (s.legacyUtcDateProcessing) s.timezone = 'Z';
155158
}
156159
return options;
157160
}

0 commit comments

Comments
 (0)