diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/PublicApiDailyRateLimitDaoImpl.java b/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/PublicApiDailyRateLimitDaoImpl.java index 75f7154925..589811693b 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/PublicApiDailyRateLimitDaoImpl.java +++ b/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/PublicApiDailyRateLimitDaoImpl.java @@ -95,7 +95,7 @@ public boolean updatePublicApiDailyRateLimit(PublicApiDailyRateLimitEntity papiR query.setParameter("ipAddress", papiRateLimitingEntity.getIpAddress()); } query.setParameter("requestCount", papiRateLimitingEntity.getRequestCount()); - query.setParameter("requestDate", papiRateLimitingEntity.getRequestDate().toString()); + query.setParameter("requestDate", papiRateLimitingEntity.getRequestDate()); return query.executeUpdate() > 0; }