Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyeh committed Apr 12, 2024
1 parent 1aff63f commit 70fb1f3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,18 @@ private void createDirectory(final Path path, final String directoryName, final
}

@VisibleForTesting
protected static String formatTimestamp(final Optional<UInt64> arrivalTimestamp) {
static String formatTimestamp(final Optional<UInt64> arrivalTimestamp) {
if (arrivalTimestamp.isEmpty()) {
return "unknown";
}

final DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SS");
Date date = new Date(arrivalTimestamp.get().longValue());
final Date date = new Date(arrivalTimestamp.get().longValue());
return df.format(date);
}

@VisibleForTesting
protected boolean isEnabled() {
boolean isEnabled() {
return enabled;
}
}

0 comments on commit 70fb1f3

Please sign in to comment.