private boolean updateTime(Time oldTime, Time newTime) {
		boolean saved = false;
		
		try {
			Connection conn = Dao.getConnection();
			// Check that the fields are not null and that the duration is greater than 1 minute.
			if (newTime.isFullFilled() && newTime.getDuration() >= MINIMUM_TIME_DURATION) {
				int updateTime = timeDao.updateTime(conn, oldTime, newTime);
				if (updateTime > 0) saved = true;				
			} else {
				checkTimeFields(newTime);
			}
		} catch (SQLException ex) {
			ErrorMessages.sqlExceptionError("updateTime()", ex);
		} catch (ClassNotFoundException ex) {
			ErrorMessages.classNotFoundError("updateTime()", ex);
		}
		return saved;
	}