Skip to content

Commit

Permalink
reworced code for date-text in headline (closes #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDekkia committed Apr 14, 2024
1 parent 341b323 commit 0b898d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const threadUnroll = {
threadInfo.appendChild(threadInfoPostCnt);

threadInfo.className = "threadInfo";
threadInfo.innerHTML += ", Created: " + new Date(statusArr[0].created_at).toLocaleTimeString() + " " + new Date(statusArr[0].created_at).toLocaleDateString();
threadInfo.innerHTML += ", Created: " + new Date(statusArr[0].created_at).toLocaleString();
userHeader.appendChild(threadInfo);

mb.appendChild(userHeader);
Expand Down

0 comments on commit 0b898d3

Please sign in to comment.