mirror of
https://github.com/YuzuZensai/Crowdin-Localization-Tools.git
synced 2026-01-06 04:33:03 +00:00
🐛 fix: timezone
This commit is contained in:
6
index.js
6
index.js
@@ -41,11 +41,9 @@ async function updateAPIMetadata() {
|
||||
console.log("Updating API Metadata...");
|
||||
try {
|
||||
const date = new Date();
|
||||
|
||||
const offsetedTime = new Date(date.getTime() + 7 * 60 * 60 * 1000);
|
||||
const currentDate = offsetedTime
|
||||
const currentDate = date
|
||||
.toLocaleString("en-US", {
|
||||
timeZone: "Etc/GMT-7",
|
||||
timeZone: "Asia/Bangkok",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
year: "numeric",
|
||||
|
||||
Reference in New Issue
Block a user