koishi-plugin-ggcevo-game 0.3.18 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -451,7 +451,7 @@ ${itemDetails.join("\n")}`;
|
|
|
451
451
|
const lastSignChina = convertUTCtoChinaTime(new Date(record.lastSign));
|
|
452
452
|
const targetDateChina = new Date(lastSignChina);
|
|
453
453
|
targetDateChina.setDate(targetDateChina.getDate() + 1);
|
|
454
|
-
const targetDateUTC = new Date(targetDateChina.getTime());
|
|
454
|
+
const targetDateUTC = new Date(targetDateChina.getTime() - 8 * 60 * 60 * 1e3);
|
|
455
455
|
const nowChina = convertUTCtoChinaTime(/* @__PURE__ */ new Date());
|
|
456
456
|
const isToday = targetDateChina.getFullYear() === nowChina.getFullYear() && targetDateChina.getMonth() === nowChina.getMonth() && targetDateChina.getDate() === nowChina.getDate();
|
|
457
457
|
if (isToday) {
|