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...");
|
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",
|
||||||
|
|||||||
Reference in New Issue
Block a user