Skip to content

Commit f84485d

Browse files
authored
chore: add timezone to quiet hours display message in UI (#10538)
1 parent c87deb8 commit f84485d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

site/src/utils/schedule.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ describe("util/schedule", () => {
8484
new Date("2023-09-06T15:00:00.000+10:00"),
8585
);
8686

87-
expect(quietHoursStart).toBe("12:00AM tomorrow (in 9 hours)");
87+
expect(quietHoursStart).toBe(
88+
"12:00AM tomorrow (in 9 hours) in Australia/Sydney",
89+
);
8890
});
8991
});

site/src/utils/schedule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export const quietHoursDisplay = (
206206
display += ` on ${day.format("dddd, MMMM D")}`;
207207
}
208208

209-
display += ` (${day.from(today)})`;
209+
display += ` (${day.from(today)}) in ${tz}`;
210210

211211
return display;
212212
};

0 commit comments

Comments
 (0)