From f0125d5c6dc411155477126e6c182c785e407162 Mon Sep 17 00:00:00 2001 From: Roland Teichert Date: Mon, 21 Oct 2024 16:26:09 +0200 Subject: [PATCH] Attempt enforced UTC parsing --- lib/datetime_decode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datetime_decode.js b/lib/datetime_decode.js index 688a8a4..af8ceae 100644 --- a/lib/datetime_decode.js +++ b/lib/datetime_decode.js @@ -45,7 +45,7 @@ exports.getDate = function ( date ) { if (!useDateStringsForType(dateStrings, 'DATE')) { - return new Date(year, jsMonthFromMysqlMonth(month), date); + return new Date(Date.UTC(year, jsMonthFromMysqlMonth(month), date)); } return getDateString(year, month, date); };