|
|
@ -1895,7 +1895,7 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter { |
|
|
|
|
|
|
|
|
|
|
|
Calendar cal = Calendar.getInstance(); |
|
|
|
Calendar cal = Calendar.getInstance(); |
|
|
|
int hour = cal.get(HOUR_OF_DAY); |
|
|
|
int hour = cal.get(HOUR_OF_DAY); |
|
|
|
if (openingTime <= hour < closingTime) { |
|
|
|
if (openingTime <= hour && hour < closingTime) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
response.sendRedirect("http://host.com/outsideOfficeHours.html"); |
|
|
|
response.sendRedirect("http://host.com/outsideOfficeHours.html"); |
|
|
|