From b361ecf4b303ea9a0a148115827db3c97c777e23 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 16 Apr 2024 20:30:58 +0300 Subject: [PATCH] [all] fix bug 67392 --- apps/common/main/lib/controller/Comments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Comments.js b/apps/common/main/lib/controller/Comments.js index 438aa42348..639683b933 100644 --- a/apps/common/main/lib/controller/Comments.js +++ b/apps/common/main/lib/controller/Comments.js @@ -1722,6 +1722,7 @@ define([ var lang = (this.mode ? this.mode.lang || 'en' : 'en').replace('_', '-').toLowerCase(); try { + if ( lang == 'ar-SA' ) lang = lang + '-u-nu-latn-ca-gregory'; // TODO: check Intl.Locale to support suitable options return date.toLocaleString(lang, {dateStyle: 'short', timeStyle: 'short'}); } catch (e) { lang = 'en'; @@ -1847,4 +1848,4 @@ define([ } }, Common.Controllers.Comments || {})); -}); \ No newline at end of file +});