Time Format In OS Booking

  • Libby Santin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #25067 by Libby Santin
Time Format In OS Booking was created by Libby Santin
Could you please tell me how to set up the Date/Time Format and Time Format in OS Booking so in every instance that a time is shown, it is shown as a 12 hour am or pm time versus 24 hr. time.

I have attached an image of my setup on the administrator side and another picture of the front end to show my problem.

Thanks for your help.

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

  • Dang Thuc Dam
  • Away
  • Administrator
  • Administrator
More
12 years 9 months ago #25081 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Time Format In OS Booking
Hi,
Please open file
components > com_osservicesbooking > helper > calendar.php
find
echo date("H:i",$inctime);
replace by
echo date($configClass,$inctime);

and find
echo date("H:i",$end_booking_time);
replace by
echo date($configClass,$end_booking_time);

Good luck
Dam
The following user(s) said Thank You: Libby Santin

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

  • Libby Santin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #25102 by Libby Santin
Replied by Libby Santin on topic Re: Time Format In OS Booking
Worked like a charm. Thank you so much for your help.

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

Moderators: Dang Thuc Dam