This patch fixes the digital display of the e17 clock. Currently,
durrint the first hour of the day (12AM) it displays the hour as 24
instead of 00. Don't know if it's the correct fix, but it seems right to
me.

Christopher
Index: default_clock.edc
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/data/themes/default_clock.edc,v
retrieving revision 1.5
diff -u -r1.5 default_clock.edc
--- default_clock.edc   13 Jul 2005 02:59:30 -0000      1.5
+++ default_clock.edc   18 Jul 2005 07:24:01 -0000
@@ -249,9 +249,7 @@
         isAfternoon = 0;
         v = hour;
         if (hour >= 12 && hour < 24) { isAfternoon = 1; }
-        if (digitalStyle == DIGITAL_STYLE_24HOUR) {
-                if (v == 0) { v = 24; }
-        } else {
+        if (digitalStyle == DIGITAL_STYLE_NORMAL) {
                 v = (v % 12);
                 if (v == 0) { v = 12; }
         }

Reply via email to