chiark
/
gitweb
/
~tthurman
/
breviary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6b1e72f
)
Last week of Epiphany is also a special case
author
Thomas Thurman
<tthurman@gnome.org>
Tue, 26 Oct 2010 06:12:13 +0000 (
02:12
-0400)
committer
Thomas Thurman
<tthurman@gnome.org>
Tue, 26 Oct 2010 06:12:13 +0000 (
02:12
-0400)
breviary/calendar.c
patch
|
blob
|
history
diff --git
a/breviary/calendar.c
b/breviary/calendar.c
index
fa9617b
..
e7f2dcf
100644
(file)
--- a/
breviary/calendar.c
+++ b/
breviary/calendar.c
@@
-355,6
+355,17
@@
breviary_ensure_initialised (Breviary *breviary)
breviary->facets[2] += 990;
}
+ else if (target_serial >= easter_serial-49 &&
+ target_serial <= easter_serial-47)
+ {
+ /*
+ * The last week of Epiphany is coded
+ * similarly.
+ */
+ breviary->facets[2] =
+ (breviary->facets[2] / 1000)*1000 +
+ 990;
+ }
else
{
breviary->facets[2] += 10 *