Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

question-circle mobile view 12hr time format

More
1 year 11 months ago #41023 by Josh Gilson
I was able to change/fix everything on my list except one issue I'm having. In the mobile view, the time start_time & end_time are still showing in 24h mode.
I see the file is: /components/com_jux_timetable/libraries/jux_class.php
But there's not dateformat or timeconvert functions in place. Where in the files can I adjust that setting?
Thank you so much for your help!

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

More
1 year 11 months ago #41025 by Jackie
Replied by Jackie on topic mobile view 12hr time format
Hi.

To edit the schedule time format, please go to edit the menu or module/ Check the schedule extends tab/ you will see the time format to change: prnt.sc/nazl0vUqU5sW

Please check it again.

Thanks.

Best regards.
Jackie Nguyen.

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

More
1 year 11 months ago #41026 by Josh Gilson
Howdy Jackie, the module is set to 12hr mode and it doesn’t work. That’s why I’ve resorted to editing the files to get it to work. I just need to know what I can edit for mobile view.

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

More
1 year 11 months ago #41029 by Jackie
Replied by Jackie on topic mobile view 12hr time format
Yes, we have checked and found that issue with the mobile view.

Please go to this file: components/com_jux_timetable/libraries/jux_class.php line 811 and 812.

change the code:

<span><?php echo $cl; ?> - </span>
<span><?php echo $cl; ?></span>

to:

<span><?php echo date( 'h:m a', strtotime($cl)); ?> - </span>
<span><?php echo date( 'h:m a', strtotime($cl)); ?> - </span>

That will help you display 12 hours format.

Thanks.

Best regards.
Jackie Nguyen.
The following user(s) said Thank You: Josh Gilson

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

More
1 year 11 months ago #41031 by Josh Gilson
h:m should be changed to g:i for US 12hr time:

<span><?php echo date( 'g:i a', strtotime($cl)); ?> - </span>
<span><?php echo date( 'g:i a', strtotime($cl)); ?> - </span>

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

More
1 year 11 months ago #41032 by Jackie
Replied by Jackie on topic mobile view 12hr time format
Yes, if you want to remove 0 before number.

If you need help, please let us know again.

Thanks.

Best regards.
Jackie Nguyen.

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

Moderators: Jackie
Time to create page: 0.031 seconds
Powered by Kunena Forum