Error appointments calendar

When creating an appointment in the calendar for example 01/20/2020 at 20:00 when confirming this is saved as follows 01/20/2020 20:00 until 01/21/2020 21:00

I think it’s from the modification -> https://hg.tryton.org/sao/rev/3e3a8e97da9b

It depends of the end date of the record but apparently it is set to 21:00.

NO. The duration is for 1 hour and calculate 25 hours end_date

So it is the computation in this custom code that result in wrong data.

you mean the uploaded issue?

No I mean your code that define the end date.

Where can I find a calendar? Not in modules.

It’s a view not a module.