Commit 74cf5fc
Fixes: #10906
The `Timestamp.valueOf()` method uses the system default time zone which may lead to discrepancy
when daylight saving happens
According to JDBC 4.2+, we don't need to convert `LocalDateTime` to `Timestamp` anymore
* Fix `DefaultLockRepository` to use `LocalDateTime` as values for SQL statements
instead of wrapping them into `Timestamp`
There are no any new tests since this internal change does not affect API logic,
and existing working tests prove that everything is still right
**Auto-cherry-pick to `7.0.x` & `6.5.x`**
1 parent 0479b79 commit 74cf5fc
1 file changed
Lines changed: 4 additions & 5 deletions
File tree
- spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
440 | 439 | | |
441 | 440 | | |
442 | 441 | | |
443 | | - | |
444 | | - | |
| 442 | + | |
| 443 | + | |
445 | 444 | | |
446 | 445 | | |
447 | | - | |
448 | | - | |
| 446 | + | |
| 447 | + | |
449 | 448 | | |
450 | 449 | | |
451 | 450 | | |
| |||
0 commit comments