Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When i try to use midnight 0h as the starting hour, i get a validation error for each opening hours element:
'This value should be of the correct primitive type.'
Comments
Comment #2
heikki CreditAttribution: heikki at Avoltus Oy commentedI provided a patch for one way of circumventing the issue (https://www.drupal.org/node/2764193#comment-11416557).
Comment #3
heikki CreditAttribution: heikki at Avoltus Oy commentedAdded related issue (2764193).
Comment #4
johnvThis is fixed here today: #2850486: Error "This value should be of the correct primitive type." for start time of "00:30"
It fixes the case "set starthours OR endhours to '00:00' ".
For the case "set starthours AND endhours to '00:00' ", see #2764193: Setting opening OR closing hours to Midnight