Chg: 全てのスケジュールが正確に動作するように

This commit is contained in:
2026-05-16 19:20:16 +09:00
parent 33435f4c46
commit 3a446440d3
8 changed files with 73 additions and 35 deletions
+5
View File
@@ -1,9 +1,14 @@
import { createUeuse } from "@/lib/client";
import initI18n from "@/lib/i18n";
import CronExpressionParser from "cron-parser";
import { format } from "date-fns";
import i18next from "i18next";
await initI18n();
const next = BigInt(CronExpressionParser.parse("0 * * * *").next().getTime() * 1_000_000);
while (process.hrtime.bigint() > next) {}
console.log("時報の投稿を行います");
try {