diff --git a/app/src/main/java/com/vincent_falzon/discreetlauncher/ViewClock.java b/app/src/main/java/com/vincent_falzon/discreetlauncher/ViewClock.java index d560ceda..6737d25b 100644 --- a/app/src/main/java/com/vincent_falzon/discreetlauncher/ViewClock.java +++ b/app/src/main/java/com/vincent_falzon/discreetlauncher/ViewClock.java @@ -231,7 +231,11 @@ else if(clock_format.equals("datetime")) { // Prepare the time text according to the selected format String time_text ; - if(clock_format.startsWith("h:")) time_text = hour12 + ":" ; + if(clock_format.startsWith("h:")) + { + if(hour12 == 0) time_text = "12:" ; + else time_text = hour12 + ":" ; + } else time_text = ((hour24 < 10) ? "0" : "") + hour24 + ":" ; time_text += ((minute < 10) ? "0" : "") + minute ; if(clock_format.equals("h:mm a"))