Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36bec48

Browse files
deansheatherpull[bot]
authored andcommitted
chore: add timezone to quiet hours display message in UI (#10538)
1 parentad60c66 commit36bec48

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎site/src/utils/schedule.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ describe("util/schedule", () => {
8484
newDate("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

Lines changed: 1 addition & 1 deletion
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
returndisplay;
212212
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp