Skip to content

Commit

Permalink
[CHORE] NPEs for timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina authored and Luke-Sikina committed Aug 29, 2024
1 parent d3289ef commit 3199846
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
public class TimeSeriesConversionService {

public String toISOString(Long unixTimeStamp) {
if (unixTimeStamp == null) {
return "";
}
Instant instant = Instant.ofEpochMilli(unixTimeStamp);
return DateTimeFormatter.ISO_INSTANT.format(instant);
}
Expand Down

0 comments on commit 3199846

Please sign in to comment.