From: Carsten Haitzler Date: Mon, 6 Jun 2011 03:29:44 +0000 (+0000) Subject: fix pm properly X-Git-Tag: submit/efl/20131021.015651~6016 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65c506b861cdd4b0bf528fbb4a8af557d2683ea7;p=platform%2Fupstream%2Fenlightenment.git fix pm properly SVN revision: 59984 --- diff --git a/data/themes/default.edc b/data/themes/default.edc index 8ae4602..0f0609e 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -12015,9 +12015,17 @@ collections { else { new pm; - if (hour > 12) pm = 1; - else pm = 0; - hour = hour % 12; + // if 12 or later, its pm + if (hour >= 12) { + pm = 1; + // if we are after 12 (1, 2, 3 etc.) then mod by 12 + if (hour > 12) hour = hour % 12; + } + else { + pm = 0; + // make after midnight be 12:XX AM :) + if (hour == 0) hour = 12; + } h1valset(hour / 10); h2valset(hour % 10); apvalset(pm);