If a WooCommerce Bookings time slot remains available in the normal booking calendar but disappears early from Do It Simply Booking Dropdown Dates, the product’s booking cutoff may not be the problem.
The current 2.0.0 plugin code contains a same-day filtering condition that can remove the entire event date at midnight, before the plugin checks the individual times still available later that day.
That creates a particularly confusing result:
WooCommerce Bookings calendar:
8:00 AM slot is still bookable
Dropdown plugin:
8:00 AM slot is gone
For an 8:00 AM event, a midnight cutoff looks exactly like the slot vanished eight hours early.
The safest temporary workaround is to use the normal WooCommerce Bookings calendar for affected products until the dropdown plugin is updated, or apply a narrowly tested one-line patch on staging.
The Problem Is in the Dropdown’s Same-Day Filter
Do It Simply Booking Dropdown Dates builds its own list of candidate dates before asking WooCommerce Bookings for the available time blocks.
The plugin first stores a value representing today’s midnight:
$this->now = (int) strtotime(
'midnight',
current_time( 'timestamp' )
);
Its source describes this property as today’s midnight in the site timezone.
Later, every candidate availability date is also converted to midnight:
$dtime = (int) strtotime(
$date_str . ' 00:00:00'
);
The plugin then runs:
if ( $dtime <= $this->now ) {
continue;
}
The source comment says this is intended to:
Skip past dates.
But <= does more than skip dates in the past.
It also skips today itself, because today’s $dtime is equal to today’s midnight stored in $this->now.
That means the current date can be removed before the plugin reaches its time-slot expansion logic.
Why an 8:00 AM Slot Can Disappear Eight Hours Early
Consider an event scheduled for:
Tuesday at 8:00 AM
and configured in WooCommerce Bookings with effectively no advance-booking restriction.
At:
Monday 11:59 PM
Tuesday is still a future date, so the dropdown can include it.
One minute later:
Tuesday 12:00 AM
the candidate date becomes today’s date.
The plugin compares:
event date midnight = Tuesday 00:00
today midnight = Tuesday 00:00
and evaluates:
$dtime <= $this->now
as true.
The entire Tuesday candidate is discarded.
The actual event does not begin until 8:00 AM, leaving an eight-hour gap:
00:00 ─────────────── 08:00
↑ ↑
dropdown removes date event starts
So the apparent “eight-hour booking cutoff” may not actually be an eight-hour cutoff at all.
It can simply be midnight occurring eight hours before an 8:00 AM event.
If the affected event begins at a different time, the lead time should change accordingly. For example, a 3:00 PM slot would potentially disappear about 15 hours before its start.
Why the Normal WooCommerce Bookings Calendar Still Works
This difference is important.
The dropdown plugin does not simply display the existing WooCommerce Bookings calendar in another format. Its own description says it builds a dropdown from the product’s Bookings availability and then fills WooCommerce Bookings’ normal date, time, and resource fields after a customer selects an option.
Its date-building class separately:
- collects candidate dates;
- removes dates it considers past;
- expands hour/minute products into individual blocks;
- asks WooCommerce Bookings whether each block is actually available.
The problem is the order.
Today’s date can be removed at step 2.
The plugin therefore never reaches the later WooCommerce Bookings availability check for today’s remaining future slots.
The normal WooCommerce Bookings form does not depend on this dropdown plugin’s candidate-date filter, which explains why the regular calendar can continue displaying the same event.
WooCommerce’s Minimum Booking Window Is a Separate Setting
WooCommerce Bookings has its own Minimum block bookable setting.
WooCommerce describes it as the amount of notice required before a booking can begin. For example, a three-hour minimum would deliberately hide a 2:00 PM slot after 11:00 AM.
If that value is intentionally set to zero or otherwise allows same-day bookings, WooCommerce should continue deciding whether the individual time block is still valid.
A separate dropdown should not convert:
today
into:
past
while future slots remain on that date.
That is why changing the WooCommerce booking cutoff is unlikely to solve this particular mismatch when the standard Bookings calendar already behaves correctly.
Confirm the Bug With a Simple Same-Day Test
You can verify the behavior without changing the production booking schedule.
Use a staging site if possible.
Create or use an hour/minute-based Bookable Product and configure a slot later today.
For example, if the current time is:
10:00 AM
create or locate a valid slot for:
2:00 PM
Set the product’s minimum booking window so that the 2:00 PM slot is currently allowed.
Then compare the two interfaces.
Standard WooCommerce Bookings calendar
Check whether the 2:00 PM slot appears.
Do It Simply dropdown
Enable:
Show dates as a dropdown
and reload the product.
If the calendar offers the 2:00 PM slot but the dropdown has removed today’s options, the behavior matches the current-day filtering code.
The Likely Code Fix
The existing condition is:
if ( $dtime <= $this->now ) {
continue;
}
If the intent is genuinely to skip past dates, today’s date should not satisfy that condition.
The minimal logical change is:
if ( $dtime < $this->now ) {
continue;
}
The difference is one character:
- if ( $dtime <= $this->now ) {
+ if ( $dtime < $this->now ) {
With that condition:
Yesterday < today → skipped
Today < today → false, keep processing
Tomorrow < today → false, keep processing
Today’s candidate can then continue to the plugin’s timed-block logic.
That matters because the class subsequently calls WooCommerce Bookings’ block-generation and availability functions to determine which individual slots should actually be offered.
Past times do not need to be eliminated by discarding the whole date first.
Do Not Treat This Patch as an Official Plugin Update
Although the source logic strongly supports this correction, directly editing a third-party plugin is not the ideal permanent repair.
A plugin update can overwrite:
wp-content/plugins/do-it-simply-booking-dropdown-dates/
without warning.
If you need to test the fix:
- make a backup;
- reproduce the problem on staging;
- record the original file;
- change only the comparison;
- test same-day future and past slots;
- report the result to the plugin developer.
The relevant file in version 2.0.0 is:
includes/class-dis-ddd-dates.php
Do not make unrelated edits while testing.
Safest Production Workaround
The lowest-risk workaround is to stop using the dropdown for products that require last-minute same-day bookings.
Open the affected Bookable Product and disable:
Show dates as a dropdown
The standard WooCommerce Bookings calendar can then remain responsible for slot selection.
This is preferable to artificially increasing event dates, altering server time, or changing the product’s availability just to compensate for the dropdown.
Once a plugin release corrects the same-day filter, re-enable the dropdown after testing it on staging.
Verify a Patched or Updated Version Properly
Do not test only one future date.
A correct fix needs to distinguish past times today from future times today.
Suppose the current time is 1:00 PM and the product has:
10:00 AM
2:00 PM
5:00 PM
Expected behavior:
| Slot | Expected |
|---|---|
| 10:00 AM | unavailable/past |
| 2:00 PM | available if Bookings permits it |
| 5:00 PM | available if Bookings permits it |
The dropdown should not solve the bug by displaying every block from today regardless of whether its start time has already passed.
WooCommerce Bookings should remain the source of truth for actual availability.
The dropdown’s current code already passes candidate start and end timestamps to:
$this->product->get_available_bookings()
during its final availability check.
That is the appropriate stage for determining whether an individual block can still be booked.
Also Test the Product’s Minimum Booking Notice
After the same-day date is restored, verify that the dropdown still honors WooCommerce Bookings’ Minimum block bookable setting.
WooCommerce documents this setting as the minimum advance notice before the booking’s start time.
For example, with:
Current time: 1:00 PM
Minimum notice: 2 hours
a:
2:00 PM
slot should not remain bookable, while:
4:00 PM
may still be valid.
The fix should therefore be:
include today as a candidate date
↓
let WooCommerce Bookings evaluate each block
not:
force every slot today to be available
Check the Site Timezone if the Cutoff Is Always Exactly Eight Hours
There is one important diagnostic distinction.
If every event disappears specifically at midnight on the event date, regardless of its start time, the current-day filtering condition explains the problem directly.
If events starting at different times all disappear exactly eight hours before their individual start time, investigate timezone handling as well.
The plugin currently mixes several legacy PHP/WordPress timestamp operations, including:
current_time( 'timestamp' )
strtotime()
gmdate()
in its date and block calculations.
WordPress’s own documentation warns against casually treating a non-GMT:
current_time( 'timestamp' )
value as a normal Unix timestamp. WordPress recommends modern timezone-aware APIs such as:
current_datetime()
wp_timezone()
for timezone-sensitive date calculations.
So after fixing the obvious same-day condition, any remaining fixed offset should be tested against:
Settings → General → Timezone
and the server/PHP timezone.
Do not change the site’s timezone merely to work around the plugin.
A More Robust Long-Term Implementation
For timed products, the plugin does not actually need to decide that an entire date is unavailable simply because the date equals today.
A more robust flow is:
Collect yesterday/today/future dates
↓
Remove dates strictly before today
↓
Expand today into actual time blocks
↓
Ask WooCommerce Bookings whether each block is valid
↓
Display only valid future/bookable slots
Using WordPress’s timezone-aware date objects would also make the intent clearer.
Conceptually:
$now = current_datetime();
$today = $now->setTime( 0, 0, 0 );
and candidate dates can be constructed using:
wp_timezone()
rather than mixing offset-adjusted WordPress timestamps with generic PHP date functions.
This would also reduce the risk of DST and UTC-offset bugs.
Current Plugin Version
At the time of this research, WordPress.org lists Do It Simply Booking Dropdown Dates 2.0.0 as the current release.
The plugin is a new public release and its changelog currently contains only:
2.0.0
Initial public release.
It requires WooCommerce and the premium WooCommerce Bookings extension.
There is therefore no newer public changelog entry documenting a same-day slot fix yet.
What to Include in a Plugin Bug Report
A concise technical report should include:
Plugin version: 2.0.0
Booking duration unit: hour/minute
Event start time:
WordPress timezone:
Minimum block bookable:
Time dropdown option disappears:
Standard Bookings calendar at same time:
Then include the relevant source behavior:
if ( $dtime <= $this->now ) {
continue;
}
and explain that both values represent midnight for today’s date.
A useful reproduction is:
- Create a timed bookable event later today.
- Set minimum booking notice to allow it.
- Confirm WooCommerce Bookings calendar still lists it.
- Enable the dropdown.
- Confirm today’s slot is missing.
- Change
<=to<on staging. - Confirm the future same-day slot returns.
- Confirm already elapsed slots remain unavailable.
That gives the plugin developer a small, repeatable test instead of only reporting that bookings disappear early.
What Not to Do
Avoid workarounds that distort the booking configuration:
- Do not change the WordPress timezone to keep slots visible.
- Do not move event times eight hours forward.
- Do not increase availability into the next day artificially.
- Do not disable WooCommerce’s normal minimum-booking rules.
- Do not force past slots back into the dropdown.
- Do not permanently maintain a direct plugin edit without tracking updates.
- Do not assume an HTTP or browser cache problem when the same-day filter itself excludes the date.
The key issue is that today is being treated as though it were already in the past.
For timed WooCommerce Bookings products, today’s date needs to survive long enough for WooCommerce Bookings to determine which individual time blocks have actually passed and which are still bookable.