My comment about some dates working came from a more extensive example. After I stripped it down to a minimal test case, I did not realize that it also stopped working for dates that had previously worked.
I first had this:
@startgantt
printscale weekly
saturdays are closed
sundays are closed
project starts 2023/9/25
[Test] lasts 1 day
@endgantt
Here, if I change the project start date to 2023/9/24, it works, but 2023/9/25 to 2023/9/29 does not. It seems that if I put the project start date on a day for which I've said something (Saturday and Sunday being closed, in this example), then it works, otherwise not.