This is an automated email from the ASF dual-hosted git repository.
thinkharderdev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-ballista.git
The following commit(s) were added to refs/heads/master by this push:
new 20891ae0 fix(ui): fix last seen (#562)
20891ae0 is described below
commit 20891ae0a740c03b5a3a909ca033f45d59fcfc83
Author: Duyet Le <[email protected]>
AuthorDate: Wed Dec 14 20:10:19 2022 +0700
fix(ui): fix last seen (#562)
---
ballista/scheduler/ui/src/components/DataTable.tsx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ballista/scheduler/ui/src/components/DataTable.tsx
b/ballista/scheduler/ui/src/components/DataTable.tsx
index 70e17c02..be8edf86 100644
--- a/ballista/scheduler/ui/src/components/DataTable.tsx
+++ b/ballista/scheduler/ui/src/components/DataTable.tsx
@@ -62,10 +62,9 @@ interface DataTableProps {
}
export const ElapsedCell: (props: any) => React.ReactNode = (props: any) => {
- const time = new Date(new Date().getTime() - props.value);
return (
<TimeAgo
- date={time}
+ date={props.value}
formatter={(
value: number,
unit: TimeAgo.Unit,