Skip to content

Commit

Permalink
fixed time zone (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym-Lenets authored Oct 19, 2023
1 parent 74209e3 commit 37a4933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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> localDate = Mockito.mockStatic(LocalDate.class)) {
Expand Down

0 comments on commit 37a4933

Please sign in to comment.