- Posts: 1
- Thank you received: 0
Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services Bug Report - Events Booking Pro 5.10.0 - Late Fee
- Tom
- Topic Author
- Offline
- New Member
-
Less
More
3 weeks 3 days ago #179896
by Tom
Bug Report - Events Booking Pro 5.10.0 - Late Fee was created by Tom
Component: Events Booking Pro 5.10.0 Bug: Late fee triggers at start of calendar day instead of at the configured timeExpected:
should not apply the late fee until 11:59 PM on Oct 16.Actual: Late fee applies immediately at midnight Oct 16 (start of day).Root cause:
line ~92 uses
for the late fee check:
strips the time portion, so any time on Oct 16 returns 0, and
triggers the fee.The other query paths (
,
,
) correctly use:
which returns a negative value until the exact minute is reached.Fix: Change
from
to
to match the other paths.Affected path:
— used by the registration controller (both frontend and admin), so this is the path that actually calculates the fee at checkout.
Code:
late_fee_date = '2026-10-16 23:59:00'
Code:
helper/database.php
Code:
DATEDIFF()
Code:
DATEDIFF($currentDate, a.late_fee_date) AS late_fee_date_diff
Code:
DATEDIFF
Code:
0 >= 0
Code:
model/event.php:47
Code:
model/list.php:279
Code:
model/commoncalendar.php:115
Code:
TIMESTAMPDIFF(MINUTE, a.late_fee_date, $currentDate) AS late_fee_date_diff
Code:
database.php:92
Code:
DATEDIFF(...)
Code:
TIMESTAMPDIFF(MINUTE, a.late_fee_date, $currentDate)
Code:
EventbookingHelperDatabase::getEvent()
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 weeks 2 days ago #179900
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug Report - Events Booking Pro 5.10.0 - Late Fee
Hi Tom
Are you sure you are using Events Booking 5.10.0 ? The code we are using is ->select("TIMESTAMPDIFF(MINUTE, a.late_fee_date, $currentDate) AS late_fee_date_diff"), so we are using TIMESTAMPDIFF, not DATEDIFF as you shown above
Regards,
Tuan
Are you sure you are using Events Booking 5.10.0 ? The code we are using is ->select("TIMESTAMPDIFF(MINUTE, a.late_fee_date, $currentDate) AS late_fee_date_diff"), so we are using TIMESTAMPDIFF, not DATEDIFF as you shown above
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.