Well, if you really want the default time zone to be “30 days,” I would use something like:
// Implicitly uses system time zone and system clock
ZonedDateTime now = ZonedDateTime.now();
ZonedDateTime thirtyDaysAgo = now.plusDays(-30);
if (eventStartDate.toInstant().isBefore(thirtyDaysAgo.toInstant())) {
...
}
If “thirty days ago” was around a DST change, you need to check that the documentation for plusDaysgives you the behavior you want:
ZonedDateTime, - , , , . - .
30 "24-" , , , , DST.