Improve shop time period validation.