Change time/date to ISO format for Github and stackoverflow websites.
< Feedback on ISO Formatted Time/Date for Github & StackOverflow
将 replaceTime 函数替换为如下来可以修复当前bug
replaceTime
Update replaceTime function to fix bug
function replaceTime(){ var time_list = document.querySelectorAll("relative-time"); time_list.forEach(function(ele) { console.log(ele); let t = new Date(ele.title); let t_str = t.toLocaleString(); ele.title = t_str; }) }
Sign in to post a reply.
将
replaceTime
函数替换为如下来可以修复当前bugUpdate
replaceTime
function to fix bug