- Issue created by @ebremner
- 🇳🇱Netherlands johnv
Hmm,
when reproducing your problem, I get the following the following error, (after committing the ID-patch):The website encountered an unexpected error. Please try again later. TypeError: Unsupported operand types: string * int in Drupal\office_hours\Element\OfficeHoursBaseSlot::validateOfficeHoursSlot() (line 244 of modules\contrib_jvo\office_hours\src\Element\OfficeHoursBaseSlot.php). Drupal\office_hours\Element\OfficeHoursBaseSlot::validateOfficeHoursSlot(Array, Object, Array) call_user_func_array(Array, Array) (Line: 282)
I changed :
- time format to ampm
- validate hours = TRUE
- start time = 01:00
I wil check. - 🇳🇱Netherlands johnv
The settings are in the getInfo() method of class OfficeHoursDatelist and class OfficeHoursDatetime.
- 🇳🇱Netherlands johnv
I found a similar error: #3020469: Seconds are always displayed →
Are you using Firefox?
I could reproduce such an error in my Firefox (recently started using it next to Edge). - 🇨🇦Canada ebremner
Yes I am using firefox but it happens in Chrome and Safari as well.
- Status changed to Fixed
over 1 year ago 10:23am 8 May 2023 - 🇳🇱Netherlands johnv
This should be fixed now, after a deep dive in the Datetime element.
I am surprised that this was not reported earlier.
Thanks for reporting. Automatically closed - issue fixed for 2 weeks with no activity.