Skip to content

Commit 3e324a8

Browse files
committed
492: Format analysis run timestamp
1 parent 56a7f77 commit 3e324a8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/client/src/pages/Admin/Components/AnalysisTable.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from "@material-ui/core";
1010
import moment from "moment-timezone";
1111
import _ from "lodash";
12+
import { formatTimestamp } from "../../../utils/utils";
1213

1314
export default function AnalysisTable(props) {
1415
const { tableData, lastExecution } = props;
@@ -24,12 +25,7 @@ export default function AnalysisTable(props) {
2425
</TableCell>
2526
<TableCell align="left">
2627
<b>
27-
{moment(
28-
lastExecution,
29-
"dddd MMMM Do h:mm:ss YYYY"
30-
)
31-
.local()
32-
.format("MMMM Do YYYY, h:mm:ss a")}
28+
{formatTimestamp(lastExecution)}
3329
</b>
3430
</TableCell>
3531
</TableRow>

0 commit comments

Comments
 (0)