client/src/components/Note.js
changeset 74 043477fd5c5c
parent 33 238818343253
child 78 49c5ea36d0a4
--- a/client/src/components/Note.js	Thu Jun 22 11:58:27 2017 +0200
+++ b/client/src/components/Note.js	Thu Jun 22 12:09:48 2017 +0200
@@ -1,11 +1,12 @@
 import React from 'react';
 import PropTypes from 'prop-types';
+import {formatTimestamp} from '../utils';
 
 const Note = ({note}) => {
   return (
     <div id={"note-" + note._id} className="note">
-      <span className="start">{note.startedAt}</span>
-      <span className="finish">{note.finishedAt}</span>
+      <span className="start">{formatTimestamp(note.startedAt)}</span>
+      <span className="finish">{formatTimestamp(note.finishedAt)}</span>
       <div dangerouslySetInnerHTML={{ __html: note.html }} />
     </div>
   );