parent
a0b2d0ef68
commit
5ac3662699
|
@ -200,7 +200,7 @@ function tWordBreak(text) {
|
||||||
|
|
||||||
function formatDate(date) {
|
function formatDate(date) {
|
||||||
return !date ? '' : tryCatch(() => {
|
return !date ? '' : tryCatch(() => {
|
||||||
const newDate = new Date(parseInt(date));
|
const newDate = new Date(Number(date) || date);
|
||||||
const string = newDate.toLocaleDateString([t.cache.browserUIlanguage, 'en'], {
|
const string = newDate.toLocaleDateString([t.cache.browserUIlanguage, 'en'], {
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
month: 'short',
|
month: 'short',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user