Skip to content

Commit 3e64fb5

Browse files
committed
fix dates in 360.
issue: #252
1 parent 30ea82d commit 3e64fb5

File tree

1 file changed

+2
-2
lines changed
  • src/client/src/pages/DataView360/View/components

1 file changed

+2
-2
lines changed

src/client/src/pages/DataView360/View/components/Volunteer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Volunteer extends Component {
4040

4141
const result = _.map(lastShifts, (shift, index) => {
4242
return(<TableRow key={index}>
43-
<TableCell>{moment(shift.from).format("YYYY-MM-DD")}</TableCell>
43+
<TableCell>{moment(shift.from).format("MM-DD-YYYY")}</TableCell>
4444
<TableCell>{shift.assignment}</TableCell>
4545
</TableRow>);
4646

@@ -77,7 +77,7 @@ class Volunteer extends Component {
7777
<TableBody>
7878
{ this.props.volunteer && (
7979
<TableRow>
80-
<TableCell>{this.props.volunteer.start_date}</TableCell>
80+
<TableCell>{moment(this.props.volunteer.start_date).format("MM-DD-YYYY")}</TableCell>
8181
<TableCell>{this.props.volunteer.life_hours.toFixed(2)}</TableCell>
8282
<TableCell>{this.props.volunteer.ytd_hours.toFixed(2)}</TableCell>
8383
</TableRow>

0 commit comments

Comments
 (0)