From 4ff67f11ed802bda9c2add554e6443246700bd5e Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 7 Oct 2024 11:14:27 +0300 Subject: [PATCH] yest label check --- client/src/views/fields/datetime-short.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/views/fields/datetime-short.js b/client/src/views/fields/datetime-short.js index 5904496b94..242d7368c2 100644 --- a/client/src/views/fields/datetime-short.js +++ b/client/src/views/fields/datetime-short.js @@ -73,7 +73,11 @@ class DatetimeShortFieldView extends DatetimeFieldView { 'yesterday': [dt.add(-3, 'days').unix(), dt.add(1, 'days').unix()] }; - if (m.unix() > ranges['yesterday'][0] && m.unix() < ranges['yesterday'][1]) { + if ( + m.unix() > ranges['yesterday'][0] && + m.unix() < ranges['yesterday'][1] && + this.getLanguage().has('yesterdayShort', 'strings', 'Global') + ) { return this.translate('yesterdayShort', 'strings') + ' ' + m.format(timeFormat); }