Please post all pre-sales questions of all products on this forum

Bug with Time Display

  • Arbind Bhagat
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #106287 by Arbind Bhagat
Bug with Time Display was created by Arbind Bhagat
If you look at the below test site, you can see the issue with time display.
joomdonation.proteonsoftware.us/

I have attached the screenshot of the issue.

Note: In the Date Formats (configuration page), I have set this (m-d-Y g:i a) because I want time to display on the event properties box.
Attachments:

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

More
7 years 5 months ago #106289 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug with Time Display
Could you check and let me know what's the value of Date Format config option? Please set Date Format to m-d-Y and Time format to g:i a and it should be OK

Tuan

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

  • Arbind Bhagat
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #106299 by Arbind Bhagat
Replied by Arbind Bhagat on topic Bug with Time Display
Hi Tuan,

As I already mentioned in the original post, the date format is (m-d-Y g:i a) in the configuration page.

I made that date format so that the system would show the time in the "Event Properties" box at the bottom of the event-detail page.

Can we fix this, still allowing the time to show in the event properties box?

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

More
7 years 5 months ago #106301 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug with Time Display
There are two parameters:

1. Date Format, you need to set it to m-d-Y
2. Event Date Format, you can set it to m-d-Y g:i a and it will show time on event details page

Tuan

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

  • Arbind Bhagat
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #106304 by Arbind Bhagat
Replied by Arbind Bhagat on topic Bug with Time Display
I would do that, but doing that, the time is not shown under the "Registration Date" column of the Registrant Management page on the backend. How could we fix that part?

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

More
7 years 5 months ago #106305 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug with Time Display
In this case, you will have to modify code. By design, the Date Format config option is without time, the Event Date Format config option will include time

Look at the file components/com_eventbooking/view/common/tmpl/events_timeline.php, you can see the code like below

$dateFormat = $config->date_format;

Change it to:
$dateFormat = 'm-d-Y';

And it will be fine

Move the modified to PATH_TO_TEMPLATE/html/com_eventbooking/common folder so that it won't be lost when you update to future releases of the extension

Tuan

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

More
7 years 5 months ago #106306 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug with Time Display
BTW, your questions are not pre-sales questions, so please post your further questions in Events Booking General questions forum www.joomdonation.com/forum/events-bookin...eral-discussion.html

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

  • Arbind Bhagat
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #106308 by Arbind Bhagat
Replied by Arbind Bhagat on topic Bug with Time Display
Hi Tuan,

(1) I have already edited the code on my website and made the correction. In fact, I did that even before submitting the ticket :) . I submitted the ticket so that you would know it and hence you may consider it in further updates to make the product even better.

(2) Yes, I noticed that it went to the wrong forum. By default, the system selected that above-top-most forum, and I didn't change it. I shal keep that in my mind.

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

More
7 years 5 months ago #106309 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug with Time Display
1=> I think it is fine as how it is. The only thing I think it makes sense is related to displaying time in registrants management, I will see if I can come up with a solution for that

2=> Thanks

Tuan

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam