mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
Always reset timeoffset in new timeframework (#36612)
Closes #36611 Signed-off-by: stianst <stianst@gmail.com>
This commit is contained in:
@@ -49,11 +49,9 @@ public class TimeOffsetSupplier implements Supplier<TimeOffSet, InjectTimeOffSet
|
||||
|
||||
@Override
|
||||
public void close(InstanceContext<TimeOffSet, InjectTimeOffSet> instanceContext) {
|
||||
if (instanceContext.getLifeCycle() != LifeCycle.METHOD) {
|
||||
TimeOffSet timeOffSet = instanceContext.getValue();
|
||||
if (timeOffSet.hasChanged()) {
|
||||
timeOffSet.set(0);
|
||||
}
|
||||
TimeOffSet timeOffSet = instanceContext.getValue();
|
||||
if (timeOffSet.hasChanged()) {
|
||||
timeOffSet.set(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user