mirror of
https://github.com/knadh/listmonk.git
synced 2025-01-21 05:37:44 +08:00
Fix incorrect day-of-week on the UI. Closes #942.
This commit is contained in:
parent
9c94efb863
commit
bea1680360
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export default class Utils {
|
||||||
}
|
}
|
||||||
|
|
||||||
const d = dayjs(stamp);
|
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}`);
|
const month = this.i18n.t(`globals.months.${d.month() + 1}`);
|
||||||
let out = d.format(`[${day},] DD [${month}] YYYY`);
|
let out = d.format(`[${day},] DD [${month}] YYYY`);
|
||||||
if (showTime) {
|
if (showTime) {
|
||||||
|
|
Loading…
Reference in a new issue