Code RoomReminder scheduled during DST gap
HardPrep Room Coding #1958

Reminder scheduled during DST gap

Code reviewCode quality & reviewSenior–Staff~22 min

Review this Java method that schedules a reminder 3 hours after a local appointment time (zone is America/New_York).

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix, specific and kind.

0:00 of about 22 min
Mark a line and say what kind of problem it is.0 findings
1ZoneId NY = ZoneId.of("America/New_York");
2 
3Instant reminderAt(LocalDateTime appt) {
4 // appt is the user's local wall-clock time, e.g. 2026-03-08T01:30
5 LocalDateTime t = appt.plusHours(3);
6 return t.atZone(NY).toInstant();
7}
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.