Live Demonstration of the problem: https://meta.wikimedia.org/w/index.php?title=User:Quiddity_(WMF)/sandbox2&oldid=19276915
Context:
We've been using this code to write Tech News for a few years (using this init page as preload), and I think it used to work correctly(?).
But for the last few months (IIRC), it does everything off-by-one.
Copy of the table in the Demonstration link, for posterity. (Note: this is using ! instead of | because pipes are phab-markup for tables):
Code | Code-Generated Result | Should actually be (manually written) |
{{#time:Y-m-d ! 2019-W34, Monday}} | 2019-08-25 | 2019-08-19 |
{{#time:Y-m-d ! 2019-W34, Tuesday}} | 2019-08-19 | 2019-08-20 |
{{#time:Y-m-d ! 2019-W34, Wednesday}} | 2019-08-20 | 2019-08-21 |
{{#time:Y-m-d ! 2019-W34, Thursday}} | 2019-08-21 | 2019-08-22 |