FIX: compares timezones on utc offset and not name (#6672)

This commit is contained in:
Joffrey JAFFEUX
2018-11-27 12:36:19 +01:00
committed by GitHub
parent 54c599c7a3
commit 75dac31323
2 changed files with 14 additions and 1 deletions

View File

@ -97,6 +97,17 @@ test("default format - no time specified", assert => {
"it appends creator timezone if watching user timezone is different"
);
});
freezeDateAndZone(advance(1), "Europe/Vienna", () => {
html = generateHTML({ date: advance(3) });
transformed = $(html).applyLocalDates();
assert.equal(
transformed.text().trim(),
"June 23, 2018",
"it doesn’t append timezone if different but with the same utc offset"
);
});
});
test("today", assert => {