Skip to content

Commit

Permalink
Attempt enforced UTC parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rentacookie committed Oct 21, 2024
1 parent f1b243e commit f0125d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datetime_decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit f0125d5

Please sign in to comment.