Skip to content

Commit

Permalink
[all] fix bug 67392
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin authored Apr 16, 2024
1 parent 58a1407 commit b361ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/common/main/lib/controller/Comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -1847,4 +1848,4 @@ define([
}

}, Common.Controllers.Comments || {}));
});
});

0 comments on commit b361ecf

Please sign in to comment.