client/src/components/SessionSummary.js
changeset 74 043477fd5c5c
parent 73 7e8cdc74d86f
child 77 cd27d9fc1c73
--- a/client/src/components/SessionSummary.js	Thu Jun 22 11:58:27 2017 +0200
+++ b/client/src/components/SessionSummary.js	Thu Jun 22 12:09:48 2017 +0200
@@ -3,6 +3,7 @@
 import { Panel, ListGroup, ListGroupItem } from 'react-bootstrap';
 import _ from 'lodash';
 import '../App.css';
+import {formatTimestamp} from '../utils';
 
 class SessionSummary extends Component {
   render() {
@@ -11,7 +12,7 @@
         {this.props.notes.map((note) =>
           <ListGroupItem key={note.get('_id')}>
             <a href={'#note-' + note.get('_id')}>
-              <span className="text-muted">{note.startedAt} → {note.finishedAt}</span>
+              <span className="text-muted">{formatTimestamp(note.startedAt)} → {formatTimestamp(note.finishedAt)}</span>
               <span className="pull-right">{_.words(note.plain).length} words</span>
             </a>
           </ListGroupItem>