Skip to content

Commit

Permalink
test: use UTC date
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Aug 12, 2024
1 parent 8619cd5 commit 764c277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ describe('http', () => {

test('should handle Date object instances', () => {
const queryObject = {
date: new Date('December 17, 1995 03:24:00'),
date: new Date(Date.UTC(1995, 11, 17, 2, 24, 0)),
};

expect(stringifyQuery(queryObject)).toEqual('date=1995-12-17T02%3A24%3A00.000Z');
Expand Down

0 comments on commit 764c277

Please sign in to comment.