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
{{ message }}
Repository navigation
Use fixed GMT time-zone for WebSessionManager Clock [SPR-15675] #20234
Currently WebSession API uses Instant for many methods. It might be good to use a type that contains timezone information it rather than the implied timezone of GMT
In the very least we need to fix the following line which uses Clock.systemDefaultZone but should use a fixed timezone (GMT) so that session times are always relative to the same time zone. Beyond that I am not convinced that we need to expose anything more than Instant. It is perfectly comparable to any other "externally created moment". Why does it need to be ZonedDateTime rather than Instant? All that matters is the time relative to session creation.
I tend to agree since the usage of ZonedDateTime in HttpHeaders is mainly driven by the fact that the time zone information is directly available in the header value we parse. Not sure that applies here, so I would be for just setting GMT fixed time zone as proposed by Rossen. Would that be ok from your point of view Rob Winch?
Activity
spring-projects-issues commentedon Jun 22, 2017
Rossen Stoyanchev commented
In the very least we need to fix the following line which uses
Clock.systemDefaultZonebut should use a fixed timezone (GMT) so that session times are always relative to the same time zone. Beyond that I am not convinced that we need to expose anything more thanInstant. It is perfectly comparable to any other "externally created moment". Why does it need to beZonedDateTimerather than Instant? All that matters is the time relative to session creation.spring-projects-issues commentedon Jun 22, 2017
Sébastien Deleuze commented
I tend to agree since the usage of
ZonedDateTimeinHttpHeadersis mainly driven by the fact that the time zone information is directly available in the header value we parse. Not sure that applies here, so I would be for just setting GMT fixed time zone as proposed by Rossen. Would that be ok from your point of view Rob Winch?spring-projects-issues commentedon Jun 26, 2017
Sébastien Deleuze commented
As discussed with Rob Winch after today's meeting, I turn this issue into using a fixed GMT time-zone with existing
Instanttype.