--- 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>
);