@azimiao/koishi-plugin-cafe-bot-exp 0.0.2 → 0.0.3
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 +5 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1685,7 +1685,11 @@ function DailySeededName(uid) {
|
|
|
1685
1685
|
const utc = now.getTime() + now.getTimezoneOffset() * 6e4;
|
|
1686
1686
|
const beijing = new Date(utc + 8 * 60 * 6e4);
|
|
1687
1687
|
const dateStr = beijing.toISOString().slice(0, 10);
|
|
1688
|
-
const
|
|
1688
|
+
const year = beijing.getFullYear();
|
|
1689
|
+
const month = beijing.getMonth() + 1;
|
|
1690
|
+
const day = beijing.getDate();
|
|
1691
|
+
const pad = /* @__PURE__ */ __name((n) => n.toString().padStart(2, "0"), "pad");
|
|
1692
|
+
const fullStr = `${uid}_${year}-${pad(month)}-${pad(day)}`;
|
|
1689
1693
|
return fullStr;
|
|
1690
1694
|
}
|
|
1691
1695
|
__name(DailySeededName, "DailySeededName");
|