projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31762c1
)
* Calendar day view: in am/pm mode, display midnight as 12:00am, not 0:00am
author
Art Cancro
<ajc@citadel.org>
Wed, 18 Feb 2009 19:11:25 +0000
(19:11 +0000)
committer
Art Cancro
<ajc@citadel.org>
Wed, 18 Feb 2009 19:11:25 +0000
(19:11 +0000)
webcit/calendar_view.c
patch
|
blob
|
history
diff --git
a/webcit/calendar_view.c
b/webcit/calendar_view.c
index b0155f331028d47c43c6c05c7b368b374113afda..69bf1bf4393ac63f03a15bd82eef2e2c8554d27d 100644
(file)
--- a/
webcit/calendar_view.c
+++ b/
webcit/calendar_view.c
@@
-1093,7
+1093,7
@@
void calendar_day_view(int year, int month, int day) {
}
else {
wprintf("%d:00%s</a> ",
- (
hour <= 12 ? hour : hour-12
),
+ (
(hour == 0) ? 12 : (hour <= 12 ? hour : hour-12)
),
(hour < 12 ? "am" : "pm")
);
}