This commit is contained in:
MeiK
2020-05-11 22:31:44 +08:00
parent f52cc82165
commit d38bee7ff9

View File

@@ -11,12 +11,12 @@ let contributions;
contributions = JSON.parse(dom.getAttribute('data')); contributions = JSON.parse(dom.getAttribute('data'));
let year = 0; let year = 0;
for (const item of contributions) { for (const item of contributions) {
item.publishDate = unescape(item.publishDate); item.publishDate = decodeURI(item.publishDate);
item.date = new Date(item.publishDate); item.date = new Date(item.publishDate);
if (item.date.getFullYear() > year) { if (item.date.getFullYear() > year) {
year = item.date.getFullYear(); year = item.date.getFullYear();
} }
item.title = unescape(item.title); item.title = decodeURI(item.title);
} }
yearList(); yearList();