diff --git a/modules/global/src/com/haulmont/cuba/core/sys/validation/CubaValidationTimeProvider.java b/modules/global/src/com/haulmont/cuba/core/sys/validation/CubaValidationTimeProvider.java index 4641dde76c..a81d73cc25 100644 --- a/modules/global/src/com/haulmont/cuba/core/sys/validation/CubaValidationTimeProvider.java +++ b/modules/global/src/com/haulmont/cuba/core/sys/validation/CubaValidationTimeProvider.java @@ -20,7 +20,6 @@ import javax.validation.ClockProvider; import java.time.Clock; -import java.time.ZonedDateTime; public class CubaValidationTimeProvider implements ClockProvider { @@ -32,7 +31,6 @@ public CubaValidationTimeProvider(TimeSource timeSource) { @Override public Clock getClock() { - ZonedDateTime now = timeSource.now(); - return Clock.fixed(now.toInstant(), now.getZone()); + return Clock.systemDefaultZone(); } } \ No newline at end of file