Bug 254073 - request for Hong Kong holidays
Summary: request for Hong Kong holidays
Status: RESOLVED FIXED
Alias: None
Product: kdepimlibs
Classification: Applications
Component: kholidays (show other bugs)
Version: 4.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: John Layt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 16:32 UTC by Glen Ng
Modified: 2012-04-27 13:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.6.2
Sentry Crash Report:


Attachments
the holiday file I tried to write by myself (4.24 KB, application/octet-stream)
2010-10-13 16:32 UTC, Glen Ng
Details
Holiday file for Hong Kong SAR(China) (3.61 KB, text/plain)
2010-12-17 14:13 UTC, Michael Tsang
Details
Holiday file for Hong Kong SAR(China) (ENGLISH) (3.86 KB, text/plain)
2010-12-22 12:20 UTC, Michael Tsang
Details
Holiday file for Hong Kong SAR(China) (CHINESE) (4.16 KB, text/plain)
2011-01-03 11:32 UTC, Michael Tsang
Details
Holiday file for Hong Kong SAR(China) (ENGLISH) (12.14 KB, text/plain)
2012-04-27 13:49 UTC, Michael Tsang
Details
Holiday file for Hong Kong SAR(China) (CHINESE) (11.02 KB, text/plain)
2012-04-27 13:50 UTC, Michael Tsang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Glen Ng 2010-10-13 16:32:13 UTC
Created attachment 52487 [details]
the holiday file I tried to write by myself

Version:           4.5 (using KDE 4.5.2) 
OS:                Linux

Details on Hong Kong General Holidays:


The legislation:
http://www.legislation.gov.hk/blis_ind.nsf/CurAllEngDoc/EC16AF2AF1A319BD88256489000ADF4E?OpenDocument

Date of the holidays in 2010 and 2011
http://www.gov.hk/en/about/abouthk/holiday/2010.htm
http://www.gov.hk/en/about/abouthk/holiday/


I tried to write the holiday file myself, but I'm not so sure if it is correct. Please see attachment.


Thanks!


Reproducible: Always
Comment 1 Glen Ng 2010-10-13 16:42:44 UTC
How can I test the holiday file?
I googled but there did not seem to be instructions.
Comment 2 Michael Tsang 2010-12-17 14:11:47 UTC
1. I think that renaming the file to holiday_hk will be more appropriate because it will be displayed as "Hong Kong SAR(China)"

I've modified it and attached a new modified version of the holiday file which is tested on my system (KDE 4.4.5)
Comment 3 Michael Tsang 2010-12-17 14:13:15 UTC
Created attachment 54862 [details]
Holiday file for Hong Kong SAR(China)

tested on KDE 4.4.5
Comment 4 Michael Tsang 2010-12-22 12:20:31 UTC
Created attachment 55154 [details]
Holiday file for Hong Kong SAR(China) (ENGLISH)
Comment 5 Michael Tsang 2011-01-03 11:18:23 UTC
Do you think that putting Ching Ming Festival onto the solar calendar section is more appropriate? It's nearly always on 5 April, with only occasional exceptions once in 4 years.
Comment 6 Michael Tsang 2011-01-03 11:32:51 UTC
Created attachment 55509 [details]
Holiday file for Hong Kong SAR(China) (CHINESE)

加入二十四節氣
Comment 7 John Layt 2011-02-25 23:50:26 UTC
Git commit f423c49b4b7b9ab21965ede9551cec0694686536 by John Layt.
Committed on 25/02/2011 at 15:39.
Pushed by jlayt into branch '4.6'.

KHoliday: Add Hong Kong holiday files

Add holiday files for Hong Kong in English and Chinese.  Note these
include holidays in the Chinese lunar calendar which I have provided
fixed dates for in the period 2000-2010.

CCBUG: 254073

A  +206  -0    kholidays/holidays/plan2/holiday_hk_en-gb         [License: UNKNOWN]  *
A  +206  -0    kholidays/holidays/plan2/holiday_hk_zh-cn         [License: UNKNOWN]  *

The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


http://commits.kde.org/kdepimlibs/f423c49b4b7b9ab21965ede9551cec0694686536
Comment 8 John Layt 2011-02-26 00:45:36 UTC
Git commit 4454ec0fd2901861b9e7f1283321e16a69d3d50b by John Layt.
Committed on 25/02/2011 at 15:39.
Pushed by jlayt into branch 'master'.

KHoliday: Add Hong Kong holiday files

Add holiday files for Hong Kong in English and Chinese.  Note these
include holidays in the Chinese lunar calendar which I have provided
fixed dates for in the period 2000-2010.

BUG: 254073
FIXED-IN: 4.6.2

FORWARD-PORT: f423c49b4b7b9ab21965ede9551cec0694686536

A  +206  -0    kholidays/holidays/plan2/holiday_hk_en-gb         [License: UNKNOWN]  *
A  +206  -0    kholidays/holidays/plan2/holiday_hk_zh-cn         [License: UNKNOWN]  *

The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


http://commits.kde.org/kdepimlibs/4454ec0fd2901861b9e7f1283321e16a69d3d50b
Comment 9 Michael Tsang 2011-03-01 13:22:20 UTC
On Saturday 26 February 2011 07:45:37 John Layt wrote:
> https://bugs.kde.org/show_bug.cgi?id=254073
> 
> 
> John Layt <john@layt.net> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
> - Status|ASSIGNED                    |RESOLVED
>    Version Fixed In|                            |4.6.2
>          Resolution|                            |FIXED
> 
> 
> 
> 
> --- Comment #8 from John Layt <john layt net>  2011-02-26 00:45:36 ---
> Git commit 4454ec0fd2901861b9e7f1283321e16a69d3d50b by John Layt.
> Committed on 25/02/2011 at 15:39.
> Pushed by jlayt into branch 'master'.
> 
> KHoliday: Add Hong Kong holiday files
> 
> Add holiday files for Hong Kong in English and Chinese.  Note these
> include holidays in the Chinese lunar calendar which I have provided
> fixed dates for in the period 2000-2010.
> 
> BUG: 254073
> FIXED-IN: 4.6.2
> 
> FORWARD-PORT: f423c49b4b7b9ab21965ede9551cec0694686536
> 
> A  +206  -0    kholidays/holidays/plan2/holiday_hk_en-gb         [License:
> UNKNOWN]  *
> A  +206  -0    kholidays/holidays/plan2/holiday_hk_zh-cn         [License:
> UNKNOWN]  *
> 
> The files marked with a * at the end have a non valid license. Please read:
> http://techbase.kde.org/Policies/Licensing_Policy and use the headers which
> are listed at that page.
> 
> 
> http://commits.kde.org/kdepimlibs/4454ec0fd2901861b9e7f1283321e16a69d3d50b
It doesn't work on my KDE 4.4. Does it work on later versions?
Comment 10 Michael Tsang 2011-03-01 13:49:34 UTC
On Saturday 26 February 2011 07:45:37 John Layt wrote:
> https://bugs.kde.org/show_bug.cgi?id=254073
> 
> 
> John Layt <john@layt.net> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
> - Status|ASSIGNED                    |RESOLVED
>    Version Fixed In|                            |4.6.2
>          Resolution|                            |FIXED
> 
> 
> 
> 
> --- Comment #8 from John Layt <john layt net>  2011-02-26 00:45:36 ---
> Git commit 4454ec0fd2901861b9e7f1283321e16a69d3d50b by John Layt.
> Committed on 25/02/2011 at 15:39.
> Pushed by jlayt into branch 'master'.
> 
> KHoliday: Add Hong Kong holiday files
> 
> Add holiday files for Hong Kong in English and Chinese.  Note these
> include holidays in the Chinese lunar calendar which I have provided
> fixed dates for in the period 2000-2010.
> 
> BUG: 254073
> FIXED-IN: 4.6.2
> 
> FORWARD-PORT: f423c49b4b7b9ab21965ede9551cec0694686536
> 
> A  +206  -0    kholidays/holidays/plan2/holiday_hk_en-gb         [License:
> UNKNOWN]  *
> A  +206  -0    kholidays/holidays/plan2/holiday_hk_zh-cn         [License:
> UNKNOWN]  *
> 
> The files marked with a * at the end have a non valid license. Please read:
> http://techbase.kde.org/Policies/Licensing_Policy and use the headers which
> are listed at that page.
> 
> 
> http://commits.kde.org/kdepimlibs/4454ec0fd2901861b9e7f1283321e16a69d3d50b
Also, I find there are lots of mistakes in these files.
Comment 11 Michael Tsang 2012-01-03 03:34:28 UTC
I've checked the file and found that the Buddha's birthdays in 2001, 2012 and 2020 are wrong (should be in April instead of May), the Chung Yeung Festival in  2014 is wrong (in 2014, it should be on 2 October instead of 1 November), the Mid-Autumn Festival in 2012 is wrong (as the day after mid-autumn festival overlaps with National Day and that day is a Monday, a supplement holiday is given after that day).
Comment 12 Michael Tsang 2012-04-27 13:39:57 UTC
http://hk.news.yahoo.com/政府公布2013公眾假期-035617225.html

Starting from 2013, the rule for reassigning holiday when it is on Sunday is changed. The supplement will always be after the Sunday and no longer on Saturday.
Comment 13 Michael Tsang 2012-04-27 13:49:55 UTC
Created attachment 70703 [details]
Holiday file for Hong Kong SAR(China) (ENGLISH)
Comment 14 Michael Tsang 2012-04-27 13:50:46 UTC
Created attachment 70704 [details]
Holiday file for Hong Kong SAR(China) (CHINESE)