Skip to content

Commit cbc5524

Browse files
committed
fix: time update logic
1 parent 9fb0b93 commit cbc5524

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/src/updateWorkflow.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ export async function updateWorkflowNumber() {
3939
const workflowDetails = await getLatestWorkflow();
4040
const count = workflowDetails.count;
4141
const timeStamp = new Date(workflowDetails.timeStamp);
42-
const time = new Date(
43-
timeStamp.getTime() + 5.5 * 60 * 60 * 1000
44-
).toLocaleString("en-US", {
42+
const time =
43+
new Date(workflowDetails.timeStamp).toLocaleString("en-US", {
4544
timeZone: "Asia/Kolkata",
4645
dateStyle: "medium",
4746
timeStyle: "short",
48-
}) +" IST";
47+
}) + " IST";
4948

5049
const readmeContent = readFileSync(READMEFILE_PATH, "utf-8");
5150

0 commit comments

Comments
 (0)