Closed
Description
Lars Grefer opened SPR-17571 and commented
org.springframework.http.ResponseEntity.HeadersBuilder.lastModified
and org.springframework.http.HttpHeaders.setLastModified
only accept the date as long
.
This long value is then internally converted to a java.time.Instant
and a java.time.ZonedDateTime
.
I propose to add overloads for the methods listed above which directly accept the "new" java.time
types.
Affects: 5.1.3
Issue Links:
- TaskScheduler interface should support java.time.Instant/Duration [SPR-14875] #19441 TaskScheduler interface should support java.time.Instant/Duration
- Overloaded convenience setters on HttpHeaders [SPR-16562] #21104 Overloaded convenience setters on HttpHeaders
- Consider using ZonedDateTime in HttpHeaders [SPR-15661] #20220 Consider using ZonedDateTime in HttpHeaders
- Consistent handling of null header values in HttpHeaders [SPR-17588] #22120 Consistent handling of null header values in HttpHeaders
Referenced from: pull request #2039, and commits a240cfc, 9abd4ed, 6a01214