Skip to content

Commit

Permalink
Merge pull request #2 from HackerspaceKRK/datefix
Browse files Browse the repository at this point in the history
switching relative time to date
  • Loading branch information
wprzyb authored Feb 20, 2024
2 parents 9fa6a23 + 8b3b508 commit 858a72e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/LoginHeaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function getBarData(jwt: string) {
addSuffix: true,
});

const dateOfExpiry = format(new Date(expirationTimestamp), "MM/dd/yyyy");
const dateOfExpiry = format(new Date(expirationTimestamp), "dd/MM/yyyy");

return {
groups,
Expand Down
2 changes: 1 addition & 1 deletion src/components/whoami.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function Whoami({ nickname, expiration, groups, expirationDate }: WhoamiP
<div className="text-gray-700 dark:text-gray-300">
Access Token Expiry:{" "}
<span className="font-medium text-gray-900 dark:text-white">
{expiration} ({expirationDate})
{expirationDate}
</span>
</div>
</div>
Expand Down

0 comments on commit 858a72e

Please sign in to comment.