public void timeSelectListener(TimeSelectEvent timeSelectEvent) {
FacesContext facesContext = FacesContext.getCurrentInstance();
Date selectedTime = timeSelectEvent.getTime();
InputTime inputTime = (InputTime) timeSelectEvent.getComponent();
String timePattern = inputTime.getTimePattern();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(timePattern);
String timeZoneString = inputTime.getTimeZone();
TimeZone timeZone = TimeZone.getTimeZone(timeZoneString);
simpleDateFormat.setTimeZone(timeZone);
String selectedTimeFormatted = simpleDateFormat.format(selectedTime);
FacesMessage facesMessage = new FacesMessage("Received 'timeSelectEvent' for date with value '" +