We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524e204 commit 282e34dCopy full SHA for 282e34d
1 file changed
src/displayapp/screens/WatchFaceDigital.cpp
@@ -160,11 +160,21 @@ bool WatchFaceDigital::Refresh() {
160
if ( settingsController.GetClockType() == Controllers::Settings::ClockType::H24 ) {
161
sprintf(hoursChar, "%02d", hour);
162
} else {
163
- if (hour > 12) {
164
- hour -= 12;
165
- sprintf(ampmChar, "PM");
166
- } else {
167
- sprintf(ampmChar, "AM");
+ if (hour == 0 && hour != 12) {
+ hour = 12;
+ sprintf(ampmChar, "AM");
+ }
+ else if (hour == 12 && hour != 0) {
168
169
+ sprintf(ampmChar, "PM");
170
171
+ else if (hour < 12 && hour != 0) {
172
173
174
+ else if (hour > 12 && hour != 0)
175
+ {
176
+ hour = hour - 12;
177
178
}
179
180
0 commit comments