Closed Nekuin closed 1 day ago
ah I actually just figured out I'm supposed to use 'o' format here
https://www.php.net/manual/en/datetime.format.php ISO 8601 week-numbering year. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead.
closing this!
Description
The following code:
Resulted in this output:
But I expected this output instead:
2024-12-30 and 2024-12-31 week numbers seem to be wrong
PHP Version
PHP 8.3.13
Operating System
Ubuntu 22.04