diff --git a/packages/concordia-app/package.json b/packages/concordia-app/package.json index 6b597ea..9b842e9 100644 --- a/packages/concordia-app/package.json +++ b/packages/concordia-app/package.json @@ -34,7 +34,6 @@ "i18next-browser-languagedetector": "^6.0.1", "i18next-http-backend": "^1.0.21", "lodash": "^4.17.20", - "moment": "^2.29.1", "prop-types": "~15.7.2", "react": "~16.13.1", "react-dom": "~16.13.1", diff --git a/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx b/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx index 99b0bd0..e003fb1 100644 --- a/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx +++ b/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx @@ -3,7 +3,6 @@ import { Icon, Image, Placeholder, Table, } from 'semantic-ui-react'; import PropTypes from 'prop-types'; -import moment from 'moment'; import { useDispatch, useSelector } from 'react-redux'; import { useTranslation } from 'react-i18next'; import determineKVAddress from '../../../utils/orbitUtils'; @@ -135,7 +134,7 @@ const GeneralTab = (props) => { {t('profile.general.tab.registration.date.row.title')} - {moment(userRegistrationTimestamp * 1000).format('dddd, MMMM Do YYYY, h:mm:ss A')} + {new Date(userRegistrationTimestamp * 1000).toLocaleString()} diff --git a/yarn.lock b/yarn.lock index 7ee24ee..92bb359 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11495,11 +11495,6 @@ mock-fs@^4.1.0: resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.13.0.tgz#31c02263673ec3789f90eb7b6963676aa407a598" integrity sha512-DD0vOdofJdoaRNtnWcrXe6RQbpHkPPmtqGq14uRX0F8ZKJ5nv89CVTYl/BZdppDxBDaV0hl75htg3abpEWlPZA== -moment@^2.29.1: - version "2.29.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" - integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ== - mortice@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/mortice/-/mortice-2.0.0.tgz#7be171409c2115561ba3fc035e4527f9082eefde"