|
|
|
@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
|
|
|
|
|
|
|
import PimItemHeader from './PimItemHeader';
|
|
|
|
|
|
|
|
|
|
import { formatDate } from '../helpers';
|
|
|
|
|
import { formatDate, formatOurTimezoneOffset } from '../helpers';
|
|
|
|
|
|
|
|
|
|
import { TaskType } from '../pim-types';
|
|
|
|
|
|
|
|
|
@ -30,10 +30,10 @@ class Task extends React.PureComponent {
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<PimItemHeader text={this.props.item.summary} backgroundColor={this.props.item.color}>
|
|
|
|
|
{item.startDate &&
|
|
|
|
|
<div>Start: {formatDate(item.startDate)} {timezone && <small>({timezone})</small>}</div>
|
|
|
|
|
<div>Start: {formatDate(item.startDate)} {timezone && <small>({formatOurTimezoneOffset()})</small>}</div>
|
|
|
|
|
}
|
|
|
|
|
{item.dueDate &&
|
|
|
|
|
<div>Due: {formatDate(item.dueDate)} {timezone && <small>({timezone})</small>}</div>
|
|
|
|
|
<div>Due: {formatDate(item.dueDate)} {timezone && <small>({formatOurTimezoneOffset()})</small>}</div>
|
|
|
|
|
}
|
|
|
|
|
<br />
|
|
|
|
|
<div><u>{this.props.item.location}</u></div>
|
|
|
|
|