fix: 修复scoresaber用户动态中时区错误的问题 (#4543)

This commit is contained in:
zhangpeng2k 2020-04-23 06:25:06 -05:00 committed by GitHub
parent 8d6e976885
commit 4405a2c1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ module.exports = async (ctx) => {
const song = item.find('.songTop.pp').text();
const mapper = item.find('.songTop.mapper').text();
const rank = item.find('.rank').text();
const time = item.find('.time').attr('title');
const time = new Date(item.find('.time').attr('title')).toLocaleString();
const ppValue = item.find('.ppValue').text();
const ppWeightedValue = item.find('.ppWeightedValue').text();
const scoreBottom = item.find('.scoreBottom').text();