UX: Ensures timezone is used over localTimezone when displaying dates
This commit is contained in:
parent
94c0228681
commit
6d0ba74b98
|
@ -32,7 +32,7 @@ export default class LocalDateBuilder {
|
|||
displayedTimezone = this.displayedTimezone || this.localTimezone;
|
||||
} else {
|
||||
displayedTimezone =
|
||||
this.displayedTimezone || this.localTimezone || this.timezone;
|
||||
this.displayedTimezone || this.timezone || this.localTimezone;
|
||||
}
|
||||
|
||||
let localDate = new DateWithZoneHelper({
|
||||
|
|
|
@ -81,7 +81,7 @@ QUnit.test("option[format]", assert => {
|
|||
freezeTime({ date: "2020-03-11" }, () => {
|
||||
assert.buildsCorrectDate(
|
||||
{ format: "YYYY" },
|
||||
{ formated: "2020" },
|
||||
{ formated: "2020 (UTC)" },
|
||||
"it uses custom format"
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue