projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f29eac
)
fix pm properly
author
Carsten Haitzler
<raster@rasterman.com>
Mon, 6 Jun 2011 03:29:44 +0000
(
03:29
+0000)
committer
Carsten Haitzler
<raster@rasterman.com>
Mon, 6 Jun 2011 03:29:44 +0000
(
03:29
+0000)
SVN revision: 59984
data/themes/default.edc
patch
|
blob
|
history
diff --git
a/data/themes/default.edc
b/data/themes/default.edc
index
8ae4602
..
0f0609e
100644
(file)
--- 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);