Compare two ZonedDateTime with ignoring the Zone:
Example:
2022-08-17 03:30:00+02 compare 2022-08-17 03:30:00+01 must give true
I Have a stream that must compare each object with others using this Date:
Set<Tele> jPointsSet = jPoints.stream()
.collect(Collectors.toCollection(() ->
new TreeSet<>(Comparator.comparing(Tele::getDateM))));
the getDateM is ZonedDateTime so I would like when use Comparator.comparing(Tele::getDateM)) ignore the Zone