Skip to content

Use fixed GMT time-zone for WebSessionManager Clock [SPR-15675] #20234

Closed

Description

@spring-projects-issues

Rob Winch opened SPR-15675 and commented

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


Affects: 5.0 RC2

Issue Links:

Referenced from: commits ba3a12e

Activity

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

    @spring-projects-issues
    CollaboratorAuthor

    Rossen Stoyanchev commented

    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.

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

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    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?

  3. spring-projects-issues commented on Jun 26, 2017

    @spring-projects-issues
    CollaboratorAuthor

    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 Instant type.

  4. 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