From e88b29622e044f751ca81b24928fbf37ce1cc646 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Fri, 9 Apr 2021 11:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E5=AE=8C=E6=88=90=E5=90=8E?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=88=A0=E9=99=A4=E4=B8=8B=E8=BD=BD=E7=9A=84?= =?UTF-8?q?JD=5FDailyBonus.js=E6=96=87=E4=BB=B6=E3=80=82=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BA=BA=E4=B8=8B=E6=AC=A1=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E7=94=B1=E4=BA=8E=E7=BD=91=E7=BB=9C=E5=BC=82=E5=B8=B8=E4=B8=8B?= =?UTF-8?q?=E8=BD=BDJD=5FDailyBonus.js=E6=96=87=E4=BB=B6=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=AD=BE=E5=88=B0=E4=B8=AD=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_bean_sign.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jd_bean_sign.js b/jd_bean_sign.js index 7fe32ba0..a21f62c3 100644 --- a/jd_bean_sign.js +++ b/jd_bean_sign.js @@ -99,7 +99,7 @@ async function execSign() { } //不管哪个时区,这里得到的都是北京时间的时间戳; const UTC8 = new Date().getTime() + new Date().getTimezoneOffset()*60000 + 28800000; - $.beanSignTime = timeFormat(UTC8); + $.beanSignTime = new Date(UTC8).toLocaleString('zh', {hour12: false}); //console.log(`脚本执行完毕时间:${$.beanSignTime}`) if (BarkContent) { allMessage += `【京东号 ${$.index}】: ${$.nickName || $.UserName}\n【签到时间】: ${$.beanSignTime}\n${BarkContent}${$.index !== cookiesArr.length ? '\n\n' : ''}`; @@ -109,7 +109,7 @@ async function execSign() { } //运行完成后,删除下载的文件 await deleteFile(resultPath);//删除result.txt - console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString()} 京东账号${$.index} ${$.nickName || $.UserName}京豆签到完成*******************\n\n`); + console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString('zh', {hour12: false})} 京东账号${$.index} ${$.nickName || $.UserName}京豆签到完成*******************\n\n`); } catch (e) { console.log("京东签到脚本执行异常:" + e); }