Fix bug where admin history date was always today

This commit is contained in:
Tanner Collin 2020-03-30 20:12:09 +00:00
parent adaa0e0d3c
commit e6c172eb95

View File

@ -43,7 +43,7 @@ export function AdminHistory(props) {
<Table.Body>
{history.map(x =>
<Table.Row key={x.id}>
<Table.Cell>{moment().utc(x.history_date).format('YYYY-MM-DD')}</Table.Cell>
<Table.Cell>{moment.utc(x.history_date).format('YYYY-MM-DD')}</Table.Cell>
<Table.Cell>{x.history_user || 'System'}</Table.Cell>
<Table.Cell>{x.history_type}</Table.Cell>
<Table.Cell>{x.owner_name}</Table.Cell>