refs #5517 log relativeDate function fixes
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2023-04-06 08:37:26 +02:00
parent 3cc6191696
commit f7191f0f7f
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ export default class Controller extends Section {
format = `'${this.$t('today')}'`;
else if (diff == 1)
format = `'${this.$t('yesterday')}'`;
else if (diff >= 2 && diff <= 5)
else if (diff < 7)
format = `'${date.toLocaleDateString(this.lang, {weekday: 'short'})}'`;
else if (this.today.getFullYear() == date.getFullYear())
format = `d '${date.toLocaleDateString(this.lang, {month: 'short'})}'`;