We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2dfa9 commit 3f5293eCopy full SHA for 3f5293e
src/client/src/pages/DataView360/View/components/Volunteer.js
@@ -33,8 +33,8 @@ class Volunteer extends Component {
33
34
createShiftRows(shifts) {
35
const shiftsSorted = _.sortBy(shifts, shift => {
36
- return new Date(shift.from).getTime();
37
- });
+ return new moment(shift.from);
+ }).reverse();
38
39
const lastShifts = shiftsSorted.slice(shiftsSorted.length - SHIFTS_TO_SHOW, shiftsSorted.length)
40
0 commit comments