Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Dec 6, 2018 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Dec 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants