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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. 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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "星际争霸2游戏大厅地图咕咕虫-evo小游戏",
4
- "version": "0.3.18",
4
+ "version": "0.3.19",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [