Skip to content

Commit

Permalink
Fix bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed May 26, 2020
1 parent 791bc2f commit 3c191a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private static String timestampToString(Timestamp ts) {
String timestampString = String.valueOf(ts);
String formatted = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(ts);

if (timestampString.length() > 19 && timestampString.substring(19) != ".0") {
if (timestampString.length() > 19 && !timestampString.substring(19).equals(".0")) {
return formatted + timestampString.substring(19);
} else {
return formatted;
Expand Down

0 comments on commit 3c191a9

Please sign in to comment.