diff --git a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java index b17b07bf2..23754763b 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java @@ -719,16 +719,16 @@ public class CorridaServiceImpl implements CorridaService { Calendar fecCorrida = Calendar.getInstance(); fecCorrida.setTime(corridaTramo.getFechorllegada()); - if (diasSemana.contains(fecCorrida.get(Calendar.DAY_OF_WEEK)) || diasSemana.contains(fecCorrida.get(Calendar.DAY_OF_WEEK))) { + if (diasSemana.contains(fecCorrida.get(Calendar.DAY_OF_WEEK))) { log.info("Hay Excepcione de tiempo"); + Calendar fechorsalida = Calendar.getInstance(); fechorsalida.setTime(corridaTramo.getFechorsalida()); - Calendar tmpTiemporecorrido = Calendar.getInstance(); - tmpTiemporecorrido.setTime(tramoTiempo.getTiemporecorrido()); + HoraSistema horaSistema = new HoraSistema(tramoTiempo.getTiemporecorrido()); - fechorsalida.add(Calendar.HOUR, tmpTiemporecorrido.get(Calendar.HOUR)); - fechorsalida.add(Calendar.MINUTE, tmpTiemporecorrido.get(Calendar.MINUTE)); + fechorsalida.add(Calendar.HOUR, horaSistema.getHora()); + fechorsalida.add(Calendar.MINUTE, horaSistema.getMinuto()); nuevaFecLlegada = fechorsalida.getTime(); }