Skip to content

Commit

Permalink
Removed the end date from the display range.
Browse files Browse the repository at this point in the history
  • Loading branch information
Soben committed Jul 12, 2019
1 parent daf67f2 commit 6cff979
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/commands/get-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@ const getDate = (requestedStartDate = null) => {
return { timeStart: utcStartTime, timeEnd: utcEndTime };
};

const getDateRangeForDisplay = (start, end) => {
const getDateRangeForDisplay = start => {
// @todo support date ranges larger than one day
let string = start.format("MMMM Do, YYYY");

if (start.format("YYYY-MM-DD") != end.format("YYYY-MM-DD")) {
string += " - " + end.format("MMMM Do, YYYY");
}

return string;
};

Expand Down

0 comments on commit 6cff979

Please sign in to comment.