uopdates to naming convention and date handling
This commit is contained in:
@@ -150,10 +150,16 @@ const TopThree = (props) => {
|
||||
"-" +
|
||||
datePart.split("-")[1] +
|
||||
"-" +
|
||||
datePart.split("-")[2]
|
||||
datePart.split("-")[2] +
|
||||
" " +
|
||||
datePart.split("-")[3].split("_")[0].slice(0, 2) +
|
||||
":" +
|
||||
datePart.split("-")[3].split("_")[0].slice(2, 4) +
|
||||
":" +
|
||||
datePart.split("-")[3].split("_")[0].slice(4, 6)
|
||||
);
|
||||
|
||||
return dateObj.toLocaleDateString();
|
||||
return dateObj.toLocaleString();
|
||||
};
|
||||
|
||||
let topThreeOnlyArr = showTopThreeArr.slice(0, 3);
|
||||
|
||||
Reference in New Issue
Block a user