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')
Command icon 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

FiNeX created an issue. See original summary.

finex’s picture

It 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.

matthieuscarset’s picture

OMG sorry for this issue. TY for reporting it.

I'm releasing a fix ASAP.

The module desperately needs automatic testing indeed 🤷

matthieuscarset’s picture

Status: Active » Fixed

Error are fixed in this commit on 2.0.x already.

I'm releasing a new version because it's a critical issue.

finex’s picture

Thank you Matthieu. Great work!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.