Allow java.time types for setting the Last-Modified header [SPR-17571] #22103
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Lars Grefer opened SPR-17571 and commented
org.springframework.http.ResponseEntity.HeadersBuilder.lastModified
andorg.springframework.http.HttpHeaders.setLastModified
only accept the date aslong
.This long value is then internally converted to a
java.time.Instant
and ajava.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:
Referenced from: pull request #2039, and commits a240cfc, 9abd4ed, 6a01214
The text was updated successfully, but these errors were encountered: