Skip to content

Commit

Permalink
[metOfficeDataHub] WIP: RF feedback adjustments to refactoring.
Browse files Browse the repository at this point in the history
[metOfficeDataHub] WIP: RF feedback adjustments to refactoring.

Signed-off-by: dag81 <[email protected]>
  • Loading branch information
dag81 committed Nov 11, 2024
1 parent 5b0a813 commit 557c977
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
Expand Down Expand Up @@ -167,8 +168,7 @@ protected static long getMillisSinceDayStart() {
}

private String millisToLocalDateTime(final long milliseconds) {
LocalDateTime cvDate = Instant.ofEpochMilli(milliseconds).atZone(timeZoneProvider.getTimeZone())
.toLocalDateTime();
ZonedDateTime cvDate = Instant.ofEpochMilli(milliseconds).atZone(timeZoneProvider.getTimeZone());
return cvDate.format(DateTimeFormatter.ofPattern(EXPECTED_TS_FORMAT));
}

Expand Down

0 comments on commit 557c977

Please sign in to comment.