mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-102184 12-hour Clock should show 12:xx instead of 0:xx
This commit is contained in:
@@ -118,6 +118,9 @@ public class ClockPanel extends JComponent {
|
||||
g.setColor(UIManager.getColor("Label.foreground"));
|
||||
myCalendar.setTimeInMillis(System.currentTimeMillis());
|
||||
int hours = myCalendar.get(is24Hours ? HOUR_OF_DAY : HOUR);
|
||||
if (hours == 0 && !is24Hours) {
|
||||
hours = 12;
|
||||
}
|
||||
int minutes = myCalendar.get(MINUTE);
|
||||
int x = 0;
|
||||
int y = (getHeight() - h) / 2;
|
||||
|
||||
Reference in New Issue
Block a user