Skip to content

Commit

Permalink
Merge branch 'hotfix/#6'
Browse files Browse the repository at this point in the history
  • Loading branch information
warmsound committed Mar 13, 2018
2 parents 2b58662 + 0c6fad1 commit ce79565
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions source/ThickThinTime.mc
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,17 @@ class ThickThinTime extends Ui.Drawable {
var is24Hour = Sys.getDeviceSettings().is24Hour;
var isPm = false;

if (!is24Hour && (hours > 12)) {
hours = hours % 12;
isPm = true;
if (!is24Hour) {

// #6 Ensure noon is shown as PM.
if (hours >= 12) {
isPm = true;

// But ensure noon is shown as 12, not 00.
if (hours > 12) {
hours = hours % 12;
}
}
}

// Hours always have leading zero, regardless of hour mode, to allow more room for move bar.
Expand Down

0 comments on commit ce79565

Please sign in to comment.