Bug 317834 - Wrong date for Ching Ming Festival (HK holiday)
Summary: Wrong date for Ching Ming Festival (HK holiday)
Status: RESOLVED FIXED
Alias: None
Product: kdepimlibs
Classification: Applications
Component: kholidays (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: John Layt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-04 16:22 UTC by aditsu
Modified: 2013-04-17 20:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aditsu 2013-04-04 16:22:25 UTC
I'm using kde 4.9.5 and the calendar (configured to show Hong Kong holidays) marks 5 Apr as the Ching Ming Festival holiday. However, that is wrong, the correct date should be 4 Apr, as can be seen at http://www.gov.hk/en/about/abouthk/holiday/

Reproducible: Always

Steps to Reproduce:
1. Set the calendar to show info for Hong Kong holidays
2. Look at the calendar for April 2013
Actual Results:  
Friday 05 April 2013 - Ching Ming Festival

Expected Results:  
Thursday 04 April 2013 - Ching Ming Festival
Comment 1 Christophe Marin 2013-04-17 09:17:21 UTC
It's defined following this rule: 

: Ching Ming Festival 5 April or 4 April in leap years (or if that day is a Sunday, then the following day)

Isn't that correct ?
Comment 2 Christophe Marin 2013-04-17 09:20:48 UTC
Glen, Michael, what do you think ?
Comment 3 Christophe Marin 2013-04-17 09:28:05 UTC
Ah, I didn't see https://bugs.kde.org/show_bug.cgi?id=254073#c12

However, the proposed change in comment 13 and 14 will make the holiday incorrect for years < 2013
Comment 4 Glen Ng 2013-04-17 11:04:24 UTC
Ching Ming Festival follows the Chinese Calendar, which most average Hong Kong people (like me) don't really understand. I remember that I was told when I was a kid that Ching Ming Festival is always Apr 4, 5 or 6 but I don't really know the rule behind. I think it might better be hard coded.

Here's a link from Hong Kong Observatory conversion table between Gregorian and Chinese Calendar (1901-2100):
http://www.hko.gov.hk/gts/time/conversion.htm
Comment 5 Glen Ng 2013-04-17 11:06:38 UTC
I forgot to mention:
In the conversion table a literal translation of "Ching Ming" is used, i.e. "Bright & Clear".


(In reply to comment #4)
> Ching Ming Festival follows the Chinese Calendar, which most average Hong
> Kong people (like me) don't really understand. I remember that I was told
> when I was a kid that Ching Ming Festival is always Apr 4, 5 or 6 but I
> don't really know the rule behind. I think it might better be hard coded.
> 
> Here's a link from Hong Kong Observatory conversion table between Gregorian
> and Chinese Calendar (1901-2100):
> http://www.hko.gov.hk/gts/time/conversion.htm
Comment 6 Christophe Marin 2013-04-17 20:22:21 UTC
Thanks. The files were updated
Comment 8 Christophe Marin 2013-04-17 20:39:39 UTC
Git commit af11cf34fb30997979561deadbe95fc3280bfb97 by Christophe Giboudeaux.
Committed on 17/04/2013 at 22:21.
Pushed by cgiboudeaux into branch 'master'.

Hardcode the Ching Ming Festival date
FIXED-IN: 4.10.3

M  +13   -12   kholidays/holidays/plan2/holiday_hk_en-gb
M  +13   -12   kholidays/holidays/plan2/holiday_hk_zh-cn

http://commits.kde.org/kdepimlibs/af11cf34fb30997979561deadbe95fc3280bfb97