diff --git a/src/main/react/package.json b/src/main/react/package.json index 56f0b39..d1dc62e 100644 --- a/src/main/react/package.json +++ b/src/main/react/package.json @@ -21,6 +21,7 @@ "@mui/material": "^5.0.4", "@reduxjs/toolkit": "^1.6.2", "core-js": "^3.18.3", + "dayjs": "^1.11.10", "react": "^18.0.0", "react-dom": "^18.0.0", "react-redux": "^7.2.6", diff --git a/src/main/react/src/pages/repos.tsx b/src/main/react/src/pages/repos.tsx index c5df9dc..c221605 100644 --- a/src/main/react/src/pages/repos.tsx +++ b/src/main/react/src/pages/repos.tsx @@ -8,6 +8,7 @@ import TableCell from '@mui/material/TableCell'; import TableHead from '@mui/material/TableHead'; import TableRow from '@mui/material/TableRow'; import Paper from '@mui/material/Paper'; +import dayjs from 'dayjs'; import { fetchCommits } from '../slices/repos'; import { useAppDispatch, useAppSelector } from '../slices/hook'; @@ -46,7 +47,7 @@ const Repos = () => { {commit.author.name} {commit.committer.name} {commit.sha} - {commit.author.date} + {dayjs(commit.author.date).format('MM/DD/YYYY HH:mm:ss')} ))} diff --git a/src/main/react/yarn.lock b/src/main/react/yarn.lock index dc6d657..64fede8 100644 --- a/src/main/react/yarn.lock +++ b/src/main/react/yarn.lock @@ -2045,6 +2045,11 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" +dayjs@^1.11.10: + version "1.11.10" + resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.10.tgz#68acea85317a6e164457d6d6947564029a6a16a0" + integrity sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ== + debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"