Commit e5b8994
authored
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 661974a commit e5b8994
1 file changed
Lines changed: 6 additions & 11 deletions
File tree
- spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
391 | 390 | | |
392 | 391 | | |
393 | 392 | | |
394 | | - | |
| 393 | + | |
395 | 394 | | |
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
399 | | - | |
| 398 | + | |
400 | 399 | | |
401 | 400 | | |
402 | 401 | | |
| |||
410 | 409 | | |
411 | 410 | | |
412 | 411 | | |
413 | | - | |
| 412 | + | |
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
420 | | - | |
| 419 | + | |
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
| |||
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 429 | + | |
| 430 | + | |
436 | 431 | | |
437 | 432 | | |
438 | 433 | | |
| |||
0 commit comments