Skip to content

Commit bb38fd3

Browse files
committed
Merge branch '6.4.x'
Closes gh-16409
2 parents 071e414 + 5075869 commit bb38fd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/org/springframework/security/authentication/ott/JdbcOneTimeTokenService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ private ThreadPoolTaskScheduler createTaskScheduler(String cleanupCron) {
190190
}
191191

192192
public void cleanupExpiredTokens() {
193-
List<SqlParameterValue> parameters = List.of(new SqlParameterValue(Types.TIMESTAMP, Instant.now()));
193+
List<SqlParameterValue> parameters = List
194+
.of(new SqlParameterValue(Types.TIMESTAMP, Timestamp.from(Instant.now())));
194195
PreparedStatementSetter pss = new ArgumentPreparedStatementSetter(parameters.toArray());
195196
int deletedCount = this.jdbcOperations.update(DELETE_ONE_TIME_TOKENS_BY_EXPIRY_TIME_QUERY, pss);
196197
if (this.logger.isDebugEnabled()) {

0 commit comments

Comments
 (0)