Fix incorrect day-of-week on the UI. Closes #942.

This commit is contained in:
Kailash Nadh 2022-10-01 14:11:27 +05:30
parent 9c94efb863
commit bea1680360

View file

@ -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) {