Commit d91d473
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
(cherry picked from commit e5b8994)
1 parent 727a11a commit d91d473
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 | | |
| |||
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
417 | | - | |
| 416 | + | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
422 | | - | |
| 421 | + | |
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
| |||
433 | 432 | | |
434 | 433 | | |
435 | 434 | | |
436 | | - | |
| 435 | + | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | 439 | | |
441 | 440 | | |
442 | 441 | | |
443 | | - | |
| 442 | + | |
444 | 443 | | |
445 | 444 | | |
446 | 445 | | |
| |||
456 | 455 | | |
457 | 456 | | |
458 | 457 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
| 458 | + | |
| 459 | + | |
465 | 460 | | |
466 | 461 | | |
467 | 462 | | |
| |||
0 commit comments