Add last run time to GenericNode component
This commit is contained in:
parent
b83ffc87b2
commit
2c66372d38
1 changed files with 4 additions and 1 deletions
|
|
@ -100,7 +100,10 @@ export default function GenericNode({
|
||||||
if (duration === undefined) {
|
if (duration === undefined) {
|
||||||
return "";
|
return "";
|
||||||
} else {
|
} else {
|
||||||
return `Duration: ${duration}`;
|
const nowTimestamp = new Date(Date.now());
|
||||||
|
// readable last run time like YYYY-MM-DD HH:MM:SS
|
||||||
|
const last_run_datetime = nowTimestamp.toLocaleString();
|
||||||
|
return `Last run: ${last_run_datetime}\nDuration: ${duration}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const durationString = getDurationString(validationStatus?.data.duration);
|
const durationString = getDurationString(validationStatus?.data.duration);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue