Skip to content

Commit 8728b88

Browse files
luizhf42gustavosbarreto
authored andcommitted
fix(ui): include am/pm indicator in web endpoint's expiration date
1 parent b956c1f commit 8728b88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/components/WebEndpoints/WebEndpointList.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ const isExpired = (date: string) => date !== "0001-01-01T00:00:00Z" && moment().
123123
const formatDate = (expiresIn: string) => {
124124
if (expiresIn === "0001-01-01T00:00:00Z") return "Never Expires";
125125
const expirationDate = moment(expiresIn);
126-
const format = "MMM D YYYY, h:mm:ss";
126+
const format = "MMM D YYYY, h:mm:ss a";
127127
return isExpired(expiresIn)
128-
? `Expired on ${expirationDate.format(format)}.`
129-
: `Expires on ${expirationDate.format(format)}.`;
128+
? `Expired on ${expirationDate.format(format)}`
129+
: `Expires on ${expirationDate.format(format)}`;
130130
};
131131
132132
const handleClick = () => {

0 commit comments

Comments
 (0)