Skip to content

Commit

Permalink
Fix datetime formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed May 12, 2024
1 parent 02b5366 commit deb103b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/tmpl/_footer.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var timeNodes = document.querySelectorAll('.time')
for (var idx = 0; idx < timeNodes.length; idx++) {
var timeNode = timeNodes[idx]
var date = new Date(timeNode.textContent)
var date = new Date(timeNode.textContent.trim())
timeNode.textContent = date.toLocaleString()
}
Expand Down

0 comments on commit deb103b

Please sign in to comment.