Skip to content

Commit 59bca5d

Browse files
committed
[dashboard] Usage list view: Fix startTime display
1 parent 645d6fc commit 59bca5d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/dashboard/src/teams/TeamUsage.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
} from "@gitpod/gitpod-protocol/lib/usage";
1717
import { AttributionId } from "@gitpod/gitpod-protocol/lib/attribution";
1818
import { Item, ItemField, ItemsList } from "../components/ItemsList";
19+
import moment from "moment";
1920
import Pagination from "../Pagination/Pagination";
2021
import Header from "../components/Header";
2122
import { ErrorCodes } from "@gitpod/gitpod-protocol/lib/messaging/error";
@@ -259,8 +260,11 @@ function TeamUsage() {
259260
<span className="text-gray-700">{usage.credits.toFixed(1)}</span>
260261
</div>
261262
<div className="my-auto">
262-
<span className="text-gray-400">
263-
{displayTime(usage.startTime)}
263+
<span
264+
className="text-gray-400"
265+
title={displayTime(usage.startTime)}
266+
>
267+
{moment(usage.startTime).fromNow()}
264268
</span>
265269
</div>
266270
</div>

0 commit comments

Comments
 (0)