Skip to content

Commit 8167e46

Browse files
committed
Fix test/FetchTypeHandler.js for Timezone changes
1 parent 73e616f commit 8167e46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/fetchTypeHandler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ describe('271. fetchTypeHandler.js', function() {
249249
oracledb.fetchTypeHandler = function(metadata) {
250250
if (metadata.dbType === oracledb.DB_TYPE_DATE) {
251251
const myConverter = (v) => {
252-
const year = v.getUTCFullYear();
253-
const month = ("0" + (v.getUTCMonth() + 1)).slice(-2); // Add leading zero if needed
254-
const day = ("0" + v.getUTCDate()).slice(-2); // Add leading zero if needed
252+
const year = v.getFullYear();
253+
const month = ("0" + (v.getMonth() + 1)).slice(-2); // Add leading zero if needed
254+
const day = ("0" + v.getDate()).slice(-2); // Add leading zero if needed
255255
const formattedDate = `${year}-${month}-${day}`;
256256
return formattedDate;
257257
};

0 commit comments

Comments
 (0)