Browse Source

Change time format to 24 hr

remotes/origin/hotfix/client/improve-chat-window-appearence
Alena Bandarovich 11 months ago
parent
commit
1df17949e0
  1. 2
      src/main/java/ChatClient.java

2
src/main/java/ChatClient.java

@ -97,7 +97,7 @@ public class ChatClient extends JFrame implements KeyListener {
}
private void updateTime() {
SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss a");
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
String currentTime = sdf.format(new Date());
timeLabel.setText("Current Time: " + currentTime);
}

Loading…
Cancel
Save