Skip to content

Commit

Permalink
reuse created outputFormat (#8938)
Browse files Browse the repository at this point in the history
  • Loading branch information
klsince authored Jun 20, 2022
1 parent 09fcdd5 commit c77c731
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ public static String dateTimeConvert(String timeValueStr, String inputFormatStr,
} else {
long granularityMs = granularitySpec.granularityToMillis();
long roundedTimeValueMs = timeValueMs / granularityMs * granularityMs;
return new DateTimeFormatSpec(outputFormatStr).fromMillisToFormat(roundedTimeValueMs);
return outputFormat.fromMillisToFormat(roundedTimeValueMs);
}
}

Expand Down

0 comments on commit c77c731

Please sign in to comment.