change time format to 24h

This commit is contained in:
yugecin
2018-06-25 23:04:51 +02:00
parent e972480c55
commit 8074b36f91

View File

@@ -341,7 +341,7 @@ public class MainMenu extends BaseOpsuState {
Utils.getTimeString((int) (System.currentTimeMillis() - programStartTime) / 1000)), Utils.getTimeString((int) (System.currentTimeMillis() - programStartTime) / 1000)),
marginX, height - bottomMarginY - (lineHeight * 2)); marginX, height - bottomMarginY - (lineHeight * 2));
g.drawString(String.format("It is currently %s.", g.drawString(String.format("It is currently %s.",
new SimpleDateFormat("h:mm a").format(new Date())), new SimpleDateFormat("HH:mm").format(new Date())),
marginX, height - bottomMarginY - lineHeight); marginX, height - bottomMarginY - lineHeight);
UI.draw(g); UI.draw(g);