Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.9.7, 1.10
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
- Wiki Page
-
Wiki Page Loading...