Skip to content

Commit b4ad3f1

Browse files
committed
setting the default timezone for the script
1 parent 68b0b8c commit b4ad3f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ async function fetchLiveData(authToken) {
303303
}
304304

305305
const jsonData = await response.json();
306-
debugLog(`Received JSON response: ${JSON.stringify(jsonData).substring(0, 200)}...`);
306+
debugLog(`Received JSON response: ${JSON.stringify(jsonData).substring(0, 500)}...`);
307307

308308
return jsonData;
309309
}
@@ -522,6 +522,8 @@ async function fetchAndCacheData() {
522522
}
523523
}
524524

525+
process.env.TZ = 'Asia/Kolkata';
526+
525527
// Make sure the cache directory exists
526528
if (!fs.existsSync(DIRECTORY_CACHE)) {
527529
fs.mkdirSync(DIRECTORY_CACHE, { recursive: true });

0 commit comments

Comments
 (0)