This calculates the amount in terms of this unit. The start and end points are supplied as temporal objects and must be of compatible types. The implementation will convert the second type to be an instance of the first type before the calculating the amount.

It is trying to convert the LocalDateTime to a ZonedDateTime. LocalDateTime doesn't have the Zone information and causes the error.

If you use a ZonedDateTime as the second parameter it works correctly: