Skip to content

Commit

Permalink
Showing the correct time is cool
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
Nincodedo committed Jan 22, 2024
1 parent e1d6cdf commit 37ecb1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ private String getTimeString(long serverTimeOfDay, boolean use24HourClock) {
int hour = (int) (currentTime / 1000 + 6);
int minute = (int) (currentTime % 1000 * 60 / 1000);
if (use24HourClock) {
if (hour == 24) {
hour = 0;
if (hour >= 24) {
hour -= 24;
}
return String.format("%02d", hour) + ":" + String.format("%02d", minute);
} else {
Expand Down

0 comments on commit 37ecb1a

Please sign in to comment.