test new hooks

This commit is contained in:
plebbitor
2023-03-22 12:59:51 +01:00
parent 09a7b3247f
commit 0717921b94
8 changed files with 260 additions and 120 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
}