Skip to content

Commit

Permalink
Fix incorrect day-of-week on the UI. Closes #942.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 1, 2022
1 parent 9c94efb commit bea1680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bea1680

Please sign in to comment.