Title: Time cannot be set
Last modified: November 18, 2023

---

# Time cannot be set

 *  Resolved [ereemst](https://wordpress.org/support/users/ereemst/)
 * (@ereemst)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/time-cannot-be-set/)
 * The times on frontside cannot be selected, it stays on search.
 * i tried removing times all and no breaks etc.
 * please advice.
 * For instance
 * Monday 10:00 untill 17:30
   Break 13:00 untill 15:30
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftime-cannot-be-set%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Time Slot Booking](https://wordpress.org/support/users/timeslotplugins/)
 * (@timeslotplugins)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17212248)
 * Hi Ereemst,
 * I’m sorry you’re having trouble with the booking form. Are the service and staff
   select boxes allowing you to choose options? Is it only the time select that 
   is staying on search?
 * Thanks.
 *  Thread Starter [ereemst](https://wordpress.org/support/users/ereemst/)
 * (@ereemst)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17213764)
 * You can test it on the url: [https://3d-echo-hoorn.nl/maak-een-afspraak/](https://3d-echo-hoorn.nl/maak-een-afspraak/)
 * backend times are in
 *  Plugin Author [Time Slot Booking](https://wordpress.org/support/users/timeslotplugins/)
 * (@timeslotplugins)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17215412)
 * Thank you for the link.
 * First, you can try resetting your permalinks. Go to settings > permalinks in 
   the sidebar menu, choose post name, and click save changes. 
 * If that doesn’t work, you may need to increase your PHP memory limit. Divi requires
   a lot of memory on its own, and needs more when you use additional plugins. This
   is something you can do on your own if you have access to your server, or you
   may need to contact your host.
 * Here is some information on Divi memory requirements:
   [https://www.elegantthemes.com/blog/divi-resources/divi-hosting-requirements#2-memory-limit](https://www.elegantthemes.com/blog/divi-resources/divi-hosting-requirements#2-memory-limit)
 *  Plugin Author [Time Slot Booking](https://wordpress.org/support/users/timeslotplugins/)
 * (@timeslotplugins)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17234229)
 * We haven’t heard back from you in a while, so I’m marking this thread as resolved.
   Feel free to start a new thread or reach out to us on [our contact page](https://timeslotplugins.com/contact/)
   if you need any more help.
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17559660)
 * Hi, I’m encountering the exact same issue. I turned on WP debugging and tried
   to make an appointment from the front end (where it says No results found at 
   the Hour field) and get this error in the debug.log
 *     ```wp-block-code
       PHP Fatal error:  Uncaught Exception: Failed to parse time string (17 h 00 min) at position 0 (1): Unexpected character in /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php:282
       Stack trace:
       #0 /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php(282): DateTime->__construct()
       #1 /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php(208): TimeSlot\DaysOff->tslotBusinessHours()
       #2 /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php(87): TimeSlot\DaysOff->tslotBookingsAndHours()
       #3 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1230): TimeSlot\DaysOff->tslotGetBusinessHours()
       #4 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()
       #5 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()
       #6 /var/www/xxxxxx.net/htdocs/wp-includes/rest-api.php(428): WP_REST_Server->serve_request()
       #7 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp-hook.php(324): rest_api_loaded()
       #8 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
       #9 /var/www/xxxxxx.net/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
       #10 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp.php(418): do_action_ref_array()
       #11 /var/www/xxxxxx.net/htdocs/wp-includes/class-wp.php(813): WP->parse_request()
       #12 /var/www/xxxxxx.net/htdocs/wp-includes/functions.php(1336): WP->main()
       #13 /var/www/xxxxxx.net/htdocs/wp-blog-header.php(16): wp()
       #14 /var/www/xxxxxx.net/htdocs/index.php(17): require('...')
       #15 {main}
         thrown in /var/www/xxxxxx.net/htdocs/wp-content/plugins/timeslot/inc/src/DaysOff.php on line 282
       ```
   
 * Note that the time notation “17 h 00 min” is French and it is what the plugin
   itself proposes when setting opening hours. It’s even the default closing time…
   The OP is using Dutch time notation, so it seems like the plugin might need some
   fixing for national date notations. Or force the admin to use international notation
   on the back-end?
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17559669)
 * Also note that once opening/closing times are set, they cannot be unset anymore.
   The admin form apparently does not accept empty fields. How to revert to the 
   default?
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17560298)
 * UPDATE
 * The site in question had a custom time format set on Settings > General. In my
   case `G \h i \m\i\n` (which translates to a time like “13 h 30 min”)… So I tested
   several of the default date/time format options and found that these steps will
   reproduce the issue:
    1. On a site where the time slot selection is working on the front end, go to the
       admin Settings > General and change the time formatting option to Custom `G\
       hi` (for example, this is the default format on french installations).
    2. Go to Time Slot settings and edit the business opening hours. Make sure they
       are formatted like “11h30” according to the time formatting setting above. Then**
       Save**.
    3. Go to the front-end appointment form and try make a booking…
 * Hope that helps you fix the issue 🙂
    -  This reply was modified 2 years, 1 month ago by [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/).
    -  This reply was modified 2 years, 1 month ago by [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/).
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17560330)
 * [@ereemst](https://wordpress.org/support/users/ereemst/) to work around the issue,
   take these steps:
    1. set the site time formatting on Settings > General to either `g:i A` or `H:i`(
       whichever of the two fits your site best)
    2. in the Time Slot business hours settings, modify each time to this format and
       save the settings.
    3. test your front end form…
 *  Plugin Author [Time Slot Booking](https://wordpress.org/support/users/timeslotplugins/)
 * (@timeslotplugins)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17560391)
 * Thank you [@ravanh](https://wordpress.org/support/users/ravanh/)! We will look
   into custom time formats and resetting default business hours, and make a note
   in our documentation about current time format availability.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Time cannot be set’ is closed to new replies.

 * ![](https://ps.w.org/timeslot/assets/icon.svg?rev=3425652)
 * [Time Slot - Booking and Appointment System](https://wordpress.org/plugins/timeslot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/timeslot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/timeslot/)
 * [Active Topics](https://wordpress.org/support/plugin/timeslot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timeslot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timeslot/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Time Slot Booking](https://wordpress.org/support/users/timeslotplugins/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/time-cannot-be-set/#post-17560391)
 * Status: resolved