Skip to content

Allow java.time types for setting the Last-Modified header [SPR-17571] #22103

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: pull request #2039, and commits a240cfc, 9abd4ed, 6a01214

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions