Fix for LOGBACK-894 cleanByPeriodOffset add time check