Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-263

CheckRunHistory should return LocalDateTime insteaf of Date for end and start time

    XMLWordPrintable

Details

    Description

      Current Situatio
      The check history properties for start and end time is a Date. To convert this into a LocalDateTime heavy scripting is neccessary.

          var lastRunCompleted = jobHistoryInfo.getLastCompleted().found ? java.time.LocalDateTime.ofInstant(jobHistoryInfo.getLastCompleted().end.toInstant(), java.time.ZoneId.systemDefault() ) : "";
      

      Desired Behaviour
      The check history properties for start and end time should be a LocalDateTime.

        var lastRunCompleted = jobChainHistoryInfo.getLastCompleted().found ? jobChainHistoryInfo.getLastCompleted().end.toString() : "";
        spooler_log.info("-------------> jobChainHistoryInfo.getLastCompleted().end.toString(): " + lastRunCompleted);
        spooler_log.info("-------------> jobChainHistoryInfo.getLastCompleted().end: " + jobChainHistoryInfo.getLastCompleted().end);
        spooler_log.info("-------------> with format: " + jobChainHistoryInfo.getLastCompleted().end.format(java.time.format.DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm:ss")));
       
      

      Attachments

        Issue Links

          Activity

            People

              ur Uwe Risse
              ur Uwe Risse
              Andreas Püschel Andreas Püschel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: