Skip to content

Commit 7310985

Browse files
committed
fixes the timezone offset
1 parent 9580d54 commit 7310985

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/integration/progressesTasks.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("Test Progress Updates API for Tasks", function () {
3434
let taskId2;
3535
beforeEach(async function () {
3636
clock = sinon.useFakeTimers({
37-
now: new Date(2023, 4, 2, 5, 55).getTime(),
37+
now: new Date(Date.UTC(2023, 4, 2, 0, 25)).getTime(), // UTC time equivalent to 5:55 AM IST
3838
toFake: ["Date"],
3939
});
4040
userId = await addUser(userData[1]);

test/integration/progressesUsers.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe("Test Progress Updates API for Users", function () {
3232
let anotherUserToken;
3333
beforeEach(async function () {
3434
clock = sinon.useFakeTimers({
35-
now: new Date(2023, 4, 2, 5, 55).getTime(),
35+
now: new Date(Date.UTC(2023, 4, 2, 0, 25)).getTime(), // UTC time equivalent to 5:55 AM IST
3636
toFake: ["Date"],
3737
});
3838
userId = await addUser(userData[1]);

0 commit comments

Comments
 (0)