diff options
Diffstat (limited to 'modern/src/settings/UsersPage.js')
-rw-r--r-- | modern/src/settings/UsersPage.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modern/src/settings/UsersPage.js b/modern/src/settings/UsersPage.js index bdebb1bb..6cb10d25 100644 --- a/modern/src/settings/UsersPage.js +++ b/modern/src/settings/UsersPage.js @@ -14,6 +14,7 @@ import CollectionActions from './components/CollectionActions'; import TableShimmer from '../common/components/TableShimmer'; import { useAdministrator } from '../common/util/permissions'; import SearchHeader, { filterByKeyword } from './components/SearchHeader'; +import { usePreference } from '../common/util/preferences'; const useStyles = makeStyles((theme) => ({ columnAction: { @@ -28,6 +29,8 @@ const UsersPage = () => { const admin = useAdministrator(); + const hours12 = usePreference('twelveHourFormat'); + const [timestamp, setTimestamp] = useState(Date.now()); const [items, setItems] = useState([]); const [searchKeyword, setSearchKeyword] = useState(''); @@ -83,7 +86,7 @@ const UsersPage = () => { <TableCell>{item.email}</TableCell> <TableCell>{formatBoolean(item.administrator, t)}</TableCell> <TableCell>{formatBoolean(item.disabled, t)}</TableCell> - <TableCell>{formatTime(item.expirationTime, 'YYYY-MM-DD')}</TableCell> + <TableCell>{formatTime(item.expirationTime, 'date', hours12)}</TableCell> <TableCell className={classes.columnAction} padding="none"> <CollectionActions itemId={item.id} |