Skip to content
Snippets Groups Projects
Commit af93c68f authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

ISS-1219: add formatter variant

parent 0e292d6d
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,8 @@ public class ResultFileTask {
// Calculate start and wall time values
DateTimeFormatter formatter = new DateTimeFormatterBuilder()
.appendOptional(DateTimeFormatter.ofPattern("EEE MMM d kk:mm:ss z yyyy"))
.appendOptional(DateTimeFormatter.ofPattern("EEE MMM d kk:mm:ss yyyy")).toFormatter(Locale.ENGLISH);
.appendOptional(DateTimeFormatter.ofPattern("EEE MMM d kk:mm:ss yyyy"))
.appendOptional(DateTimeFormatter.ofPattern("EEE MMM d kk:mm:ss yyyy")).toFormatter(Locale.ENGLISH);
Collection<Double> startTimeValues = retrieveValues(Constants.STATISTICS_RESOURCES_START_TIME)
.map(s -> s != null && !s.equals("null")
? (double) LocalDateTime.parse(s, formatter).toEpochSecond(ZoneOffset.UTC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment