File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-web/src/main/java/org/springframework/web/server/session Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import java .time .Clock ;
19
19
import java .time .Instant ;
20
+ import java .time .ZoneId ;
20
21
import java .util .List ;
21
22
import java .util .UUID ;
22
23
@@ -41,7 +42,7 @@ public class DefaultWebSessionManager implements WebSessionManager {
41
42
42
43
private WebSessionStore sessionStore = new InMemoryWebSessionStore ();
43
44
44
- private Clock clock = Clock .systemDefaultZone ( );
45
+ private Clock clock = Clock .system ( ZoneId . of ( "GMT" ) );
45
46
46
47
47
48
/**
@@ -82,7 +83,7 @@ public WebSessionStore getSessionStore() {
82
83
* Configure the {@link Clock} for access to current time. During tests you
83
84
* may use {code Clock.offset(clock, Duration.ofMinutes(-31))} to set the
84
85
* clock back for example to test changes after sessions expire.
85
- * <p>By default {@link Clock#systemDefaultZone( )} is used.
86
+ * <p>By default {@code Clock.system(ZoneId.of("GMT") )} is used.
86
87
* @param clock the clock to use
87
88
*/
88
89
public void setClock (Clock clock ) {
You can’t perform that action at this time.
0 commit comments