See “real” commit date in github (hour/day)

后端 未结 7 1413
离开以前
离开以前 2021-01-31 00:36

Is there a way to see the date of a commit in github, with day/hour precision? Older commits appear in a \"human readable\" format, such as \"2 years ago\" instead of showing th

7条回答
  •  广开言路
    2021-01-31 01:33

    you can just use this js bookmark:

    javascript:(function() { 
            var relativeTimeElements = window.document.querySelectorAll("relative time");
            relativeTimeElements.forEach(function(timeElement){
            timeElement.innerHTML = timeElement.innerHTML +" -- "+ timeElement.title;
            })
        }()
    )
    

    https://gist.github.com/PhilippGrulich/7051832b344d4cbd30fbfd68524baa38

    It adds just the correct time: Like this: committed 21 hours ago -- 15. Feb. 2017, 15:49 MEZ

提交回复
热议问题