🐛 fix: timezone

This commit is contained in:
2025-02-22 11:43:14 +07:00
parent 90b5adc016
commit 46be130ab9

View File

@@ -41,11 +41,9 @@ async function updateAPIMetadata() {
console.log("Updating API Metadata..."); console.log("Updating API Metadata...");
try { try {
const date = new Date(); const date = new Date();
const currentDate = date
const offsetedTime = new Date(date.getTime() + 7 * 60 * 60 * 1000);
const currentDate = offsetedTime
.toLocaleString("en-US", { .toLocaleString("en-US", {
timeZone: "Etc/GMT-7", timeZone: "Asia/Bangkok",
month: "2-digit", month: "2-digit",
day: "2-digit", day: "2-digit",
year: "numeric", year: "numeric",