From 37a4933c0cc85e26aff4586d932b08ef0a150f71 Mon Sep 17 00:00:00 2001 From: Maksym Date: Thu, 19 Oct 2023 13:39:30 +0300 Subject: [PATCH] fixed time zone (#1244) --- .../java/greencity/service/ubs/UBSManagementServiceImpl.java | 2 +- .../greencity/service/ubs/UBSManagementServiceImplTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/greencity/service/ubs/UBSManagementServiceImpl.java b/service/src/main/java/greencity/service/ubs/UBSManagementServiceImpl.java index e8da091cb..433f33f23 100644 --- a/service/src/main/java/greencity/service/ubs/UBSManagementServiceImpl.java +++ b/service/src/main/java/greencity/service/ubs/UBSManagementServiceImpl.java @@ -1878,7 +1878,7 @@ private void transferPointsToUser(Order order, User user, long pointsInCoins) { public void updateOrderStatusToExpected() { orderRepository.updateOrderStatusToExpected(OrderStatus.CONFIRMED.name(), OrderStatus.ON_THE_ROUTE.name(), - LocalDate.now(ZoneId.of("Europe/Kyiv"))); + LocalDate.now(ZoneId.of("Europe/Kiev"))); } @Override diff --git a/service/src/test/java/greencity/service/ubs/UBSManagementServiceImplTest.java b/service/src/test/java/greencity/service/ubs/UBSManagementServiceImplTest.java index b9103f2ce..97b564f3b 100644 --- a/service/src/test/java/greencity/service/ubs/UBSManagementServiceImplTest.java +++ b/service/src/test/java/greencity/service/ubs/UBSManagementServiceImplTest.java @@ -2698,7 +2698,7 @@ void checkEmployeeForOrderTest() { @Test void updateOrderStatusToExpected() { - ZoneId expectedZoneId = ZoneId.of("Europe/Kyiv"); + ZoneId expectedZoneId = ZoneId.of("Europe/Kiev"); LocalDate expectedLocalDate = LocalDate.of(2019, 1, 2); try (MockedStatic localDate = Mockito.mockStatic(LocalDate.class)) {