mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update BoardStats.jsx
This commit is contained in:
@@ -20,7 +20,7 @@ const BoardStats = ({ subplebbitAddress }) => {
|
|||||||
const date = new Date(timestamp * 1000);
|
const date = new Date(timestamp * 1000);
|
||||||
const month = ('0' + (date.getMonth() + 1)).slice(-2);
|
const month = ('0' + (date.getMonth() + 1)).slice(-2);
|
||||||
const day = ('0' + date.getDate()).slice(-2);
|
const day = ('0' + date.getDate()).slice(-2);
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear().toString().slice(-2);
|
||||||
return month + '/' + day + '/' + year;
|
return month + '/' + day + '/' + year;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user