Skip to content

Commit 4e3dd40

Browse files
committed
fix(workflows): updated_at in local timezone for summary table
1 parent 413b34c commit 4e3dd40

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

os-checks/pages/workflows.vue

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,17 +202,24 @@ const workflowColumns = [
202202
]
203203
204204
const workflowSelected = computed(() => {
205-
return selectedSummaries.value.map((val, idx) => ({
206-
idx: idx + 1,
207-
user: val.user,
208-
repo: val.repo,
209-
history: val.runs,
210-
completed: val.last?.completed ? "" : (val.runs ? "" : ""),
211-
success: val.last?.success ? "" : (val.runs ? "" : ""),
212-
head_branch: val.last?.head_branch ?? "",
213-
updated_at: val.last?.updated_at ?? "",
214-
duration_sec: val.last?.duration_sec ?? null,
215-
}));
205+
return selectedSummaries.value.map((val, idx) => {
206+
let updated_at = "";
207+
if (val.last?.updated_at) {
208+
updated_at = fmtDateTime(val.last?.updated_at);
209+
}
210+
211+
return {
212+
idx: idx + 1,
213+
user: val.user,
214+
repo: val.repo,
215+
history: val.runs,
216+
completed: val.last?.completed ? "" : (val.runs ? "" : ""),
217+
success: val.last?.success ? "" : (val.runs ? "" : ""),
218+
head_branch: val.last?.head_branch ?? "",
219+
updated_at,
220+
duration_sec: val.last?.duration_sec ?? null,
221+
}
222+
});
216223
});
217224
218225
const runColumns = [

0 commit comments

Comments
 (0)