Skip to content

Commit

Permalink
Merge pull request thelounge#1201 from thelounge/xpaw/fix-timezone-test
Browse files Browse the repository at this point in the history
Fix localtime test to correctly use UTC
  • Loading branch information
astorije authored Jun 8, 2017
2 parents 92911e2 + 42a8b60 commit 6e0493b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/client/js/libs/handlebars/localetimeTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const localetime = require("../../../../../client/js/libs/handlebars/localetime"
describe("localetime Handlebars helper", () => {
it("should render a human-readable date", () => {
// 12PM in UTC time
const date = new Date("2014-05-22T12:00:00");
const date = new Date("2014-05-22T12:00:00Z");

// Offset between UTC and local timezone
const offset = date.getTimezoneOffset() * 60 * 1000;
Expand Down

0 comments on commit 6e0493b

Please sign in to comment.