Skip to content

Commit

Permalink
fix(workflows): updated_at in local timezone for summary table
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Oct 23, 2024
1 parent 413b34c commit 4e3dd40
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions os-checks/pages/workflows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,24 @@ const workflowColumns = [
]
const workflowSelected = computed(() => {
return selectedSummaries.value.map((val, idx) => ({
idx: idx + 1,
user: val.user,
repo: val.repo,
history: val.runs,
completed: val.last?.completed ? "" : (val.runs ? "" : ""),
success: val.last?.success ? "" : (val.runs ? "" : ""),
head_branch: val.last?.head_branch ?? "",
updated_at: val.last?.updated_at ?? "",
duration_sec: val.last?.duration_sec ?? null,
}));
return selectedSummaries.value.map((val, idx) => {
let updated_at = "";
if (val.last?.updated_at) {
updated_at = fmtDateTime(val.last?.updated_at);
}
return {
idx: idx + 1,
user: val.user,
repo: val.repo,
history: val.runs,
completed: val.last?.completed ? "" : (val.runs ? "" : ""),
success: val.last?.success ? "" : (val.runs ? "" : ""),
head_branch: val.last?.head_branch ?? "",
updated_at,
duration_sec: val.last?.duration_sec ?? null,
}
});
});
const runColumns = [
Expand Down

0 comments on commit 4e3dd40

Please sign in to comment.