- πΊπ¦Ukraine vlad.dancer Kyiv
Here is a patch that foes next things:
- for field widget: adds js setting to hide seconds when datetimehideseconds is enabled and configured to hide specific field.
- for field formatter: add new condition to check
23:59:00
time and assume it as valid "all-day" time format.
- πΊπ¦Ukraine vlad.dancer Kyiv
This patch incorporates previous changes plus makes compatible with Drupal 10 version of datetimehideseconds module π Doesn't hide seconds on Drupal 10 Fixed (in dev branch).
There are few more minor adjustments:
date_all_day.js:- used core/once library to attach drupal behaviour once,
- added workaround to prevent browser of running time input validation when seconds are not hidden.
Patches' interdiff is in place.