Skip to content

Commit

Permalink
test: fix test by appending timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-conde committed Nov 27, 2023
1 parent 276b09e commit 5d1fd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("Time", function() {
});

it("should format simple date strings and reverse the output", () => {
const result = ripeCommons.dateStringUTC(new Date("10/12/2020") / 1000, "-", {
const result = ripeCommons.dateStringUTC(new Date("10/12/2020Z") / 1000, "-", {
reverseDate: true
});
assert.deepStrictEqual(result, "2020-10-12");
Expand Down

0 comments on commit 5d1fd68

Please sign in to comment.