Skip to content

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

Closed
@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions