Rivista/assets/script/iso8601_to_utc.js

9 lines
240 B
JavaScript
Raw Normal View History

// Convert ISO8601 To UTC
window.onload = function(){
for (element of document.querySelectorAll('#articles > ul > li > div > h4')) {
timestamp = new Date(element.textContent);
element.textContent = timestamp.toUTCString();
}
}