Skip to content

Commit

Permalink
fix date time
Browse files Browse the repository at this point in the history
  • Loading branch information
aomegax committed Jan 4, 2024
1 parent 3ebae3d commit 91287d8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ private String fixDateTime(String faultBeanTimestamp) {
if (dotIndex != -1) {
int fractionLength = faultBeanTimestamp.length() - dotIndex - 1;
faultBeanTimestamp = fractionLength < 6 ? String.format("%s%s", faultBeanTimestamp, "0".repeat(6 - fractionLength)) : faultBeanTimestamp;

}
else {
faultBeanTimestamp = String.format("%s.000000", faultBeanTimestamp);
}

return faultBeanTimestamp;
}

Expand Down

0 comments on commit 91287d8

Please sign in to comment.