From 284bde0e271682a626d72cbdcb7c895fed0903b2 Mon Sep 17 00:00:00 2001 From: backdev-1 Date: Mon, 18 May 2026 15:13:16 +0700 Subject: [PATCH] dev check violation for lawcase,complaint --- src/main/java/ru/soune/nocopy/handler/ViolationHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java b/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java index 2016960..fea6ba5 100644 --- a/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java +++ b/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java @@ -87,6 +87,10 @@ public class ViolationHandler implements RequestHandler { if (violationRequest.getStartDate() != null && violationRequest.getEndDate() != null) { startDate = parseDate(violationRequest.getStartDate()); endDate = parseDate(violationRequest.getEndDate()); + + if (endDate != null && !violationRequest.getEndDate().contains(" ")) { + endDate = endDate.withHour(23).withMinute(59).withSecond(59); + } } if ("updateStatus".equals(violationRequest.getAction())) {