Skip to content

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

Closed

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

Activity

  1. added
    type: enhancement
    in: web
    on Jan 11, 2019
  2. added this to the 5.1.4 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions