fix(Convert to File Node): Fix issue with end date always being day+1 when all day

This commit is contained in:
Jonathan Bennetts 2024-10-10 11:48:04 +01:00
parent eb2d1ca357
commit 66ae41db3d
No known key found for this signature in database

View file

@ -289,7 +289,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
end = start;
}
end = allDay ? moment(end).utc().add(1, 'day').format() : end;
end = allDay ? moment(end).utc().set({ hour: 23, minute: 59, second: 59 }).format() : end;
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i);
const options = this.getNodeParameter('additionalFields', i);