Skip to content

Commit

Permalink
fix: 修复 23-24 元旦假期调休标记错误问题 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea-Chenjia-Pan authored Sep 16, 2024
1 parent c5ae5f5 commit f7c6a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions chinese_calendar/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ def __new__(cls, english, chinese, days):
datetime.date(year=2023, month=10, day=4): Holiday.national_day.value,
datetime.date(year=2023, month=10, day=5): Holiday.national_day.value,
datetime.date(year=2023, month=10, day=6): Holiday.national_day.value,
datetime.date(year=2023, month=12, day=30): Holiday.new_years_day.value,
datetime.date(year=2023, month=12, day=31): Holiday.new_years_day.value,
datetime.date(year=2024, month=1, day=1): Holiday.new_years_day.value,
datetime.date(year=2024, month=2, day=10): Holiday.spring_festival.value,
datetime.date(year=2024, month=2, day=11): Holiday.spring_festival.value,
Expand Down
3 changes: 2 additions & 1 deletion chinese_calendar/scripts/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def _2023(self):
.ld().rest(4, 29).to(5, 3).work(4, 23).work(5, 6).in_lieu(5, 2).to(5, 3) \
.dbf().rest(6, 22).to(6, 24).work(6, 25).in_lieu(6, 23) \
.maf().rest(9, 29) \
.nd().rest(9, 30).to(10, 6).work(10, 7).to(10, 8).in_lieu(10, 5).to(10, 6)
.nd().rest(9, 30).to(10, 6).work(10, 7).to(10, 8).in_lieu(10, 5).to(10, 6)\
.nyd().rest(12, 30).to(12, 31)

def _2022(self):
""" http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm
Expand Down

0 comments on commit f7c6a29

Please sign in to comment.