Skip to content

Consider using ZonedDateTime in HttpHeaders [SPR-15661] #20220

Closed

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-15661 and commented

As raised during discussing #20114, ideally we Spring Framework 5 API should exposed date/time with timezone in a consistent way, but currently HttpHeaders existing date/time fields are exposed with long while they should be exposed with ZonedDateTime like ContentDisposition.

The consensus was to deprecate current long based variants and to add new ZonedDateTime ones, but this is not possible easily on getters if we use the same method name and choosing other names like getDateAsZonedDateTime() is not super appealing.


Affects: 5.0 RC2

Issue Links:

Referenced from: commits 1fa8410, 5c1d8c7

Activity

  1. spring-projects-issues commented on Jun 22, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    Merged, see the commit log message for more details.

  2. added
    in: web
    type: task
    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: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions