From 17a759ce1e71a1a704960921e7b9edfa56d246cf Mon Sep 17 00:00:00 2001 From: the_kellner Date: Sat, 30 May 2020 18:46:39 +0200 Subject: [PATCH] bugfix for allBetweenAndUser Endpoint of records --- .../java/de/hft/geotime/repositories/RecordRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java b/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java index 71c04f6..a7e1822 100644 --- a/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java +++ b/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java @@ -27,8 +27,8 @@ public interface RecordRepository extends PagingAndSortingRepository findAllByStartdateBetweenAndAccount_User_Username( - LocalDateTime start, - LocalDateTime end, + @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss") LocalDateTime start, + @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss") LocalDateTime end, String username, Pageable pageable );