change time format to 24h

This commit is contained in:
yugecin 2018-06-25 23:04:51 +02:00
parent e972480c55
commit 8074b36f91
No known key found for this signature in database
GPG Key ID: 2C5AC035A7068E44

View File

@ -341,7 +341,7 @@ public class MainMenu extends BaseOpsuState {
Utils.getTimeString((int) (System.currentTimeMillis() - programStartTime) / 1000)),
marginX, height - bottomMarginY - (lineHeight * 2));
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);
UI.draw(g);