fix date
This commit is contained in:
parent
aa2e2e92df
commit
1ce513031e
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ function renderStatus(status) {
|
||||||
instance.target = "_blank";
|
instance.target = "_blank";
|
||||||
let timestamp = document.createElement("span");
|
let timestamp = document.createElement("span");
|
||||||
timestamp.classList.add("timestamp", "date", "date-rfc3339");
|
timestamp.classList.add("timestamp", "date", "date-rfc3339");
|
||||||
timestamp.innerText = new Date(Date.UTC(status.timestamp)).toISOString();
|
let d =
|
||||||
|
Date.parse(status.timestamp) + new Date().getTimezoneOffset() * 60000;
|
||||||
|
timestamp.innerText = new Date(d).toISOString();
|
||||||
meta.append(username, at, instance, " at ", timestamp);
|
meta.append(username, at, instance, " at ", timestamp);
|
||||||
quote.appendChild(meta);
|
quote.appendChild(meta);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue