diff --git a/frontend/src/component/history/history-list-component.jsx b/frontend/src/component/history/history-list-component.jsx index a937c8ffa8..d88b2309a3 100644 --- a/frontend/src/component/history/history-list-component.jsx +++ b/frontend/src/component/history/history-list-component.jsx @@ -6,6 +6,10 @@ import { HeaderTitle, SwitchWithLabel } from '../common'; import style from './history.scss'; +const dateOptions = { day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit' }; + +const formatDate = v => (new Date(v)).toLocaleString('nb-NO', dateOptions); + class HistoryList extends Component { toggleShowDiff () { @@ -36,7 +40,7 @@ class HistoryList extends Component { Type User Diff - (new Date(v)).toLocaleString('nb-NO')}>Time + Time ); }