@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.51 → 2.3.7-dev.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "2.3.7-dev.51",
3
+ "version": "2.3.7-dev.52",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -595,7 +595,13 @@ export default class SiteOperationSchedule extends Operation {
595
595
  // 加えて重複も除外する。
596
596
  const targetDates = dates
597
597
  .map((date) => {
598
- if (date instanceof Date) return dayjs(date).format("YYYY-MM-DD");
598
+ if (date instanceof Date) {
599
+ const jstDate = new Date(date.getTime() + 9 * 60 * 60 * 1000);
600
+ const year = jstDate.getUTCFullYear();
601
+ const month = String(jstDate.getUTCMonth() + 1).padStart(2, "0");
602
+ const day = String(jstDate.getUTCDate()).padStart(2, "0");
603
+ return `${year}-${month}-${day}`;
604
+ }
599
605
  return date;
600
606
  })
601
607
  .filter((date) => date !== this.date)