log.info("validFromMinute: " + validFromMinute);
Long users_id = sessiondataDao.checkSession(SID);
Long user_level = userManager.getUserLevelByID(users_id);
OmTimeZone omTimeZone = omTimeZoneDaoImpl
.getOmTimeZone(jNameTimeZone);
// If everything fails
if (omTimeZone == null) {
omTimeZone = omTimeZoneDaoImpl.getOmTimeZone(configurationDao.getConfValue("default.timezone", String.class, "Europe/Berlin"));
}
Calendar date = Calendar.getInstance();
date.setTime(validFromDate);
String timeZoneName = omTimeZone.getIcal();
Calendar calFrom = Calendar.getInstance(TimeZone.getTimeZone(timeZoneName));
calFrom.set(Calendar.YEAR, date.get(Calendar.YEAR));
calFrom.set(Calendar.MONTH, date.get(Calendar.MONTH));
calFrom.set(Calendar.DAY_OF_MONTH, date.get(Calendar.DAY_OF_MONTH));
calFrom.set(Calendar.HOUR_OF_DAY, validFromHour);