Bug 365241 - The information on Japanese holidays is outdated
Summary: The information on Japanese holidays is outdated
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kholidays
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-08 15:37 UTC by Firas Kraiem
Modified: 2018-07-08 16:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.48.0


Attachments
Update Japanese holiday data file (Japanese language) (4.96 KB, text/plain)
2016-07-08 15:38 UTC, Firas Kraiem
Details
Update Japanese holiday data file (English language) (4.21 KB, text/plain)
2016-07-08 15:39 UTC, Firas Kraiem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Firas Kraiem 2016-07-08 15:37:07 UTC
The information on Japanese holidays is outdated. Updated holiday data files are attached. For holidays whose date varies, I have included them from 2010 through 2019, but can add more if needed.

Reproducible: Always

Steps to Reproduce:
1. Consult the calendar for example by clicking the Digital Clock widget.

Actual Results:  
For holidays whose date varies, some dates are incorrect. Greenery Day is still on April 29, even though it was moved to May 4 and replaced by Showa Day. Mountains' Day is missing.

Expected Results:  
Holiday names and dates should be correct.
Comment 1 Firas Kraiem 2016-07-08 15:38:26 UTC
Created attachment 99948 [details]
Update Japanese holiday data file (Japanese language)
Comment 2 Firas Kraiem 2016-07-08 15:39:50 UTC
Created attachment 99949 [details]
Update Japanese holiday data file (English language)
Comment 3 Christophe Marin 2016-07-11 08:26:00 UTC
Thanks for the update. When were these changes decided ? it may be worth keeping 29 april for the previous years.
Comment 4 Firas Kraiem 2016-07-11 17:18:19 UTC
April 29 is the birthday of Emperor Showa; during his reign (until 1988) it was the Emperor's Birthday holiday. In 1989 it was renamed to Greenery Day, and in 2007 to Showa Day. Greenery Day was then moved to May 4, which previously was a "citizens' holiday".

Mountains' Day was introduced in 2016.
Comment 5 Allen Winter 2018-06-03 17:54:31 UTC
Git commit 49f6abb6035f97c0a98113e3aedf5d2db135bf63 by Allen Winter.
Committed on 03/06/2018 at 17:53.
Pushed by winterz into branch 'master'.

updated Japanese holidays (in Japanese and English)
FIXED-IN: 5.48.0

M  +39   -96   holidays/plan2/holiday_jp_en-us
M  +45   -101  holidays/plan2/holiday_jp_ja

https://commits.kde.org/kholidays/49f6abb6035f97c0a98113e3aedf5d2db135bf63
Comment 6 Allen Winter 2018-06-03 17:56:11 UTC
FYI: I removed the equinox holidays because KHolidays now computes the equinoxes and solstices automatically and adds them to holidays.

if the equinoxes in Japan need to be different than the computed values let me know.
Comment 7 Jumpei Ogawa 2018-06-30 13:54:46 UTC
Hey Allen, did you read diff ( https://cgit.kde.org/kholidays.git/commit/?id=49f6abb6035f97c0a98113e3aedf5d2db135bf63 ) when you merge the attached files?
The code attached by Firas is based on quite old codebase (July 2016) and it reverts my updates done in May 2017:

https://phabricator.kde.org/D5736
https://cgit.kde.org/kholidays.git/commit/?id=f6044686a1768565bcf3d91489f1b080d64c8666

It removes metadata, re-add non-existing holidays (The days listed in "Cultural" section including St. Valentine's Day, Girls' Festival, and Buddha's Birthday are not holidays in Japan), removes comments referring governmental information about holidays.

I think your commit 49f6abb should be reverted.
I opened request to revert 49f6abb:
https://phabricator.kde.org/D13812
Comment 8 Jumpei Ogawa 2018-06-30 14:47:03 UTC
As I commented in Phabricator, Japanese Equinox Days cannot be calculated automatically. Therefore, I think equinox days should be kept.
https://phabricator.kde.org/D13812
Comment 9 Allen Winter 2018-07-08 16:08:24 UTC
Git commit 1c2ecfbf9570752d516f204d3034cc714e3ff66f by Allen Winter.
Committed on 08/07/2018 at 16:06.
Pushed by winterz into branch 'master'.

holiday_jp_ja, holiday_jp-en_us -  updated
Thanks for the patch phanect

Differential Revision: https://phabricator.kde.org/D13812

M  +96   -39   holidays/plan2/holiday_jp_en-us
M  +96   -47   holidays/plan2/holiday_jp_ja

https://commits.kde.org/kholidays/1c2ecfbf9570752d516f204d3034cc714e3ff66f