Skip to content

Commit

Permalink
Merge pull request #123 from ghost/patch-2
Browse files Browse the repository at this point in the history
Change formatTime function in DateUtils.java
  • Loading branch information
AChep committed May 27, 2019
2 parents 5d40645 + 15aca70 commit 72d92fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -41,7 +41,7 @@ public static String formatTime(@NonNull Context context, int h, int m) {
if (h == 0) h = 12;
else if (h >= 13) h -= 12;
}
return h + ":" + (m < 10 ? "0" + m : m);
return String.format("%02d:%02d", h, m);
}

}

0 comments on commit 72d92fd

Please sign in to comment.