We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b29ed commit 5075869Copy full SHA for 5075869
core/src/main/java/org/springframework/security/authentication/ott/JdbcOneTimeTokenService.java
@@ -190,7 +190,8 @@ private ThreadPoolTaskScheduler createTaskScheduler(String cleanupCron) {
190
}
191
192
public void cleanupExpiredTokens() {
193
- List<SqlParameterValue> parameters = List.of(new SqlParameterValue(Types.TIMESTAMP, Instant.now()));
+ List<SqlParameterValue> parameters = List
194
+ .of(new SqlParameterValue(Types.TIMESTAMP, Timestamp.from(Instant.now())));
195
PreparedStatementSetter pss = new ArgumentPreparedStatementSetter(parameters.toArray());
196
int deletedCount = this.jdbcOperations.update(DELETE_ONE_TIME_TOKENS_BY_EXPIRY_TIME_QUERY, pss);
197
if (this.logger.isDebugEnabled()) {
0 commit comments