The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=1689b875b4b80c152cf7d3652c72335a2149173e
commit 1689b875b4b80c152cf7d3652c72335a2149173e Author: Dag-Erling Smørgrav <[email protected]> AuthorDate: 2026-09-13 13:54:42 +0000 Commit: Dag-Erling Smørgrav <[email protected]> CommitDate: 2026-09-13 13:54:42 +0000 libc/stdtime: Catch up with tzcode 2026d Fixes: 212e35249432 ("tzcode: Update to 2026c") --- lib/libc/stdtime/strftime.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 89c9e4cf88ff..c8245ae937fe 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -373,9 +373,7 @@ label: int bot; int top; - len = isleap_sum(year, base) ? - DAYSPERLYEAR : - DAYSPERNYEAR; + len = year_sum_days(year, base); /* * What yday (-3 ... 3) does * the ISO year begin on? @@ -402,9 +400,7 @@ label: break; } --base; - yday += isleap_sum(year, base) ? - DAYSPERLYEAR : - DAYSPERNYEAR; + yday += year_sum_days(year, base); } #ifdef XPG4_1994_04_09 if ((w == 52 &&
