]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r359585, r359587
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>
Fri, 10 Apr 2020 22:18:13 +0000 (22:18 +0000)
committerOleksandr Tymoshenko <gonzo@FreeBSD.org>
Fri, 10 Apr 2020 22:18:13 +0000 (22:18 +0000)
commit91b1b91e724127ded73b0c5f1b0619401ed2f35c
treeca860124fb81836c130da5833007da49a2490da7
parent1258293a25d43550426545c4e77382616f706598
MFC r359585, r359587

r359585:
Fix calculation of the recurring weekdays

Both the result of the first_dayofweek_of_year and the target
weekday are zero-based (0 fo sunday) while the target month-day
or year-day is 1-based. Adjust logic accordingly.

Also add testcase for this PR to the kyua test suite

PR: 201062
Submitted by: Richard Narron <comet.berkeley@gmail.com>

r359587:
Remove hardcoded US Election Day from calendar.usholiday

calendar(1) syntax is not capable of representing the rules for the
US Election Day. The hardcoded date was set in r15066 in 1996 and
hasn't changed since then.

PR: 173389
Reported by: Steve Ames <steve@energistic.com>
usr.bin/calendar/calendars/calendar.usholiday
usr.bin/calendar/parsedata.c
usr.bin/calendar/tests/calendar.calibrate
usr.bin/calendar/tests/regress.s5.out [new file with mode: 0644]
usr.bin/calendar/tests/regress.sh