Date with Calendar Picker issue with PHP 8.2

Post Reply
pico
Posts: 48
Joined: 13 Jul 2019, 23:13
Name: Pico Seno
Location: Jakarta, indonesia
Company Name: Banda Tech
Contact:

Date with Calendar Picker issue with PHP 8.2

Post by pico »

The Date with Calendar Picker field on PHP 8.2 cannot handle negative number. This happens consistently with those three "selectable date" settings on the extra tab.
- default date
- minimum selectable date
- maximum selectable date

For example: when we set -10 (days) as minimum selectable date, the calendar will only allow +10 days to be selected instead.

See attachments below.
fieldConfig.png
fieldConfig.png (20.89 KiB) Viewed 156 times
datePickerform.png
datePickerform.png (35.43 KiB) Viewed 156 times

I also have tested this issue on PHP 8.1 and 8.0, but this bug only exists when we use PHP 8.2.

Just a reminder, PHP 8.0 has reached EOL and soon this year PHP 8.1 will be too.
https://www.php.net/supported-versions.php


Cheers
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Date with Calendar Picker issue with PHP 8.2

Post by support »

Found issue and fixed for 3.5 (will be released soon)
pico
Posts: 48
Joined: 13 Jul 2019, 23:13
Name: Pico Seno
Location: Jakarta, indonesia
Company Name: Banda Tech
Contact:

Re: Date with Calendar Picker issue with PHP 8.2

Post by pico »

Thank you!
Post Reply