fix: pixiv X-Client-Time header, close #3325

This commit is contained in:
DIYgod 2019-10-28 14:43:08 +08:00
parent b01129e6c0
commit ff7c1be507
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ async function getToken() {
data.append(key, element);
}
}
const localTime = new Date().toISOString();
const localTime = new Date().toISOString().replace(/\..+/, '') + '+00:00';
const response = await got({
method: 'post',
url: 'https://oauth.secure.pixiv.net/auth/token',