mirror of https://github.com/coder/coder.git
chore: add timezone to quiet hours display message in UI (#10538)
This commit is contained in:
parent
c87deb868b
commit
f84485d2c4
|
@ -84,6 +84,8 @@ describe("util/schedule", () => {
|
|||
new Date("2023-09-06T15:00:00.000+10:00"),
|
||||
);
|
||||
|
||||
expect(quietHoursStart).toBe("12:00AM tomorrow (in 9 hours)");
|
||||
expect(quietHoursStart).toBe(
|
||||
"12:00AM tomorrow (in 9 hours) in Australia/Sydney",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -206,7 +206,7 @@ export const quietHoursDisplay = (
|
|||
display += ` on ${day.format("dddd, MMMM D")}`;
|
||||
}
|
||||
|
||||
display += ` (${day.from(today)})`;
|
||||
display += ` (${day.from(today)}) in ${tz}`;
|
||||
|
||||
return display;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue