ISO Formatted Time/Date for Github & StackOverflow

Change time/date to ISO format for Github and stackoverflow websites.

< Feedback on ISO Formatted Time/Date for Github & StackOverflow

Review: Bad - script does not work

§
Posted: 2024-10-09
Edited: 2024-10-09

replaceTime 函数替换为如下来可以修复当前bug

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;
        })
    }

Post reply

Sign in to post a reply.