Registrants list: filter dates without time

  • ci-zeto
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #132032 by ci-zeto
Why date filter fields above registrants lists always after choosing date setting up current time even if date formats are set in config to Y-m-d? Where in code I can change this behaviour to show only date, without time and/or search start from 00:00:00 to 23:59:59 with choosen dates. I'm talking about registrants list from backend.

Tried in \html\administrator\components\com_eventbooking\view\registrants\tmpl\default.php by removing ' %H:%M:%S' from $this->datePickerFormat . ' %H:%M:%S' date was showing correctly, but filter button just ignore this filters then...

There must be some invalid query, but cannot find where is this query located.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #132035 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registrants list: filter dates without time
Hello

There will be more code modification needed (after removing the time from date picker) - happy to add this change to core package if it works for you :

1. Get the attached file, unzip it
2. Upload the received php file to administrator/components/com_eventbooking/model/common

Then check it again to see if it's working as expected

Tuan

Please Log in or Create an account to join the conversation.

  • ci-zeto
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #132039 by ci-zeto
Replied by ci-zeto on topic Registrants list: filter dates without time
Works like a charm, big thanks!

X button (on the right of search button) shouldn't reset datepicker fields? This is minor issue, but would love to see some fix on that too.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #132042 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registrants list: filter dates without time
Yes, agree. But I will work on it later. You need to implement override that file anyway (to remove time from the date picker), so please do that extra modification

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc