diff --git a/src/targets/services/fluidsPrices.ts b/src/targets/services/fluidsPrices.ts index cd71bf29c611e5991c0b373624ecf8aa285252a7..32ad62df05c206c88c1ad0bb145b207b451dae1c 100644 --- a/src/targets/services/fluidsPrices.ts +++ b/src/targets/services/fluidsPrices.ts @@ -140,7 +140,11 @@ const aggregatePrices = async ( `Aggregation started for fluid: ${fluidType}, from ${firstDate} ` ) for (const timeStep of timeSteps) { - let aggregationDate = DateTime.fromObject(firstDate) + let aggregationDate = DateTime.fromObject({ + year: firstDate.year, + month: firstDate.month, + day: firstDate.day, + }) try { do { const timePeriod = await getTimePeriod(timeStep, aggregationDate)