revert test

This commit is contained in:
plebbitor
2023-03-22 13:17:38 +01:00
parent 0717921b94
commit 35e37160f9
7 changed files with 61 additions and 26 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
const getDate = (commentTimestamp) => {
const locale = Intl.DateTimeFormat().resolvedOptions().locale;
const string = /*new Intl.DateTimeFormat(locale, {
const string = new Intl.DateTimeFormat(locale, {
hour12: false,
year: '2-digit',
month: '2-digit',
@@ -9,7 +9,7 @@ const getDate = (commentTimestamp) => {
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
}).format(new Date(commentTimestamp * 1000))*/ "";
}).format(new Date(commentTimestamp * 1000));
if (locale.startsWith('ar')) {
return string
}