You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 withlong
while they should be exposed withZonedDateTime
likeContentDisposition
.The consensus was to deprecate current
long
based variants and to add newZonedDateTime
ones, but this is not possible easily on getters if we use the same method name and choosing other names likegetDateAsZonedDateTime()
is not super appealing.Affects: 5.0 RC2
Issue Links:
Referenced from: commits 1fa8410, 5c1d8c7
The text was updated successfully, but these errors were encountered: