dude consistency lmao
parent
5aac54f0dc
commit
e728ec922b
|
@ -324,13 +324,12 @@ function formatDate(d) {
|
||||||
const timestamps = document.querySelectorAll('[data-time]');
|
const timestamps = document.querySelectorAll('[data-time]');
|
||||||
|
|
||||||
for (const e of timestamps) {
|
for (const e of timestamps) {
|
||||||
const date = new Date(e.dataset.time*1000);
|
e.innerHTML = formatDate(new Date(e.dataset.time*1000));
|
||||||
e.innerHTML = formatDate(date);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function timestamp(str, ti) {
|
function timestamp(str, ti) {
|
||||||
const date = new Date(ti*1000);
|
const date = formatDate(new Date(ti*1000));
|
||||||
document.getElementById(str).setAttribute("data-bs-original-title", formatDate(date));
|
document.getElementById(str).setAttribute("data-bs-original-title", date);
|
||||||
};
|
};
|
||||||
|
|
||||||
function areyousure(t) {
|
function areyousure(t) {
|
||||||
|
|
Loading…
Reference in New Issue