Skip to content

Commit

Permalink
[dataprep] Fix issue on time aggregation
Browse files Browse the repository at this point in the history
Fix #40
  • Loading branch information
sim51 committed Mar 7, 2024
1 parent 0a2c4ad commit 3a0be30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataprep/src/utils/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async function transformLassoSource(
const featureDate = new Date(f.properties[timestampPropertyName]);
const labelsKeys = [];
if (source.timeSeries?.monthsLabels) {
const month = featureDate.getMonth();
const month = featureDate.getMonth() + 1; // January is à in JS
const monthLabel = toPairs(source.timeSeries.monthsLabels).find(([, ml]) =>
ml.months.includes(month),
);
Expand Down

0 comments on commit 3a0be30

Please sign in to comment.