From bea1680360b796503c74e870315245eca7214fed Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 1 Oct 2022 14:11:27 +0530 Subject: [PATCH] Fix incorrect day-of-week on the UI. Closes #942. --- frontend/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils.js b/frontend/src/utils.js index f7d97ff..2283c46 100644 --- a/frontend/src/utils.js +++ b/frontend/src/utils.js @@ -58,7 +58,7 @@ export default class Utils { } const d = dayjs(stamp); - const day = this.i18n.t(`globals.days.${d.day()}`); + const day = this.i18n.t(`globals.days.${d.day() + 1}`); const month = this.i18n.t(`globals.months.${d.month() + 1}`); let out = d.format(`[${day},] DD [${month}] YYYY`); if (showTime) {