Fix a9vg Invalid Date (#1422)

This commit is contained in:
imlonghao
2019-01-17 19:02:02 +08:00
committed by DIYgod
parent 7850b43834
commit c7961a241e

View File

@@ -27,7 +27,7 @@ module.exports = async (ctx) => {
return {
title: item.find('.img-scale').attr('title'),
description: item.find('p').text() + '<img src="' + item.find('img').attr('src') + '">',
pubDate: new Date(item.find('.time').data('shared-at')).toUTCString(),
pubDate: new Date(item.find('.time').text()).toUTCString(),
link: item.find('.img-scale').attr('href'),
};
})