Problem/Motivation
After updating to 2.0.1 from 2.0, the module returns the following error:
PHP message: TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /var/www/html/web/modules/contrib/calendar_view/src/Plugin/views/style/Calendar.php on line 537 #0 /var/www/html/web/modules/contrib/calendar_view/src/Plugin/views/style/Calendar.php(537): date('Y-m-d 00:00:00', '2023-01-31')
Issue fork calendar_view-3337852
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
finex commentedIt looks that the module has been tested with timestamp fields (like "created" or "updated") but not with Date only fields which stores the date using Y-m-d format instead of an integer.
Comment #3
matthieuscarset commentedOMG sorry for this issue. TY for reporting it.
I'm releasing a fix ASAP.
The module desperately needs automatic testing indeed 🤷
Comment #6
matthieuscarset commentedError are fixed in this commit on
2.0.xalready.I'm releasing a new version because it's a critical issue.
Comment #7
finex commentedThank you Matthieu. Great work!