Skip to content

Commit

Permalink
Merge pull request #117 from City-of-Helsinki/latest-changes
Browse files Browse the repository at this point in the history
Latest changes
  • Loading branch information
lauhasd2 authored Mar 7, 2022
2 parents 0c15b43 + 2914938 commit a3ec8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/reports/reportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const parseReport = (headers, csvRows, blockColumn, timeRange) => {

const dateItems = date.split('.')

const currentDate = new Date(dateItems[2], dateItems[1], dateItems[0])
const currentDate = new Date(dateItems[2], dateItems[1] - 1, dateItems[0])

if (currentDate >= startDate && currentDate <= endDate) {
return kylkDates.add({ date: date.trim(), current: currentDate })
Expand Down

0 comments on commit a3ec8de

Please sign in to comment.