Skip to content

Commit

Permalink
Merge pull request #91 from ncaq/fix-github-file-updated-time
Browse files Browse the repository at this point in the history
fix: GitHubでのファイル更新日時など相対表記はそのままで地域のフォーマットを使うように変更 closed #90
  • Loading branch information
ncaq authored Aug 5, 2023
2 parents ff50c82 + 7d8c8aa commit a9d6db7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/GitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ export default class GitHub extends Site {
// issueの書き込み時間
GitHub.relativeTimes().forEach((relativeTime) => {
if (relativeTime instanceof HTMLElement) {
const datetime = relativeTime.getAttribute("datetime");
if (typeof datetime === "string") {
relativeTime.outerText = dayjs(datetime).format();
}
relativeTime.setAttribute("lang", window.navigator.languages[0]);
}
});
// コミット履歴の区切り
Expand Down

0 comments on commit a9d6db7

Please sign in to comment.