- Posts: 14
- Thank you received: 0
Date/Time Format Not Showing up Correctly in EMai
- Libby Santin
- Topic Author
- Offline
- New Member
-
Less
More
12 years 3 months ago #25103
by Libby Santin
Date/Time Format Not Showing up Correctly in EMai was created by Libby Santin
The emails that are generated when an appointment is booked do not have the correct time and date format. please see attached.
I want the time to be in 12 hr. am or pm. For example 3:00pm
I want the date to Month-Day-Year. For example today's date should read: 02-07-13
I want the time to be in 12 hr. am or pm. For example 3:00pm
I want the date to Month-Day-Year. For example today's date should read: 02-07-13
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13053
- Thank you received: 1696
12 years 3 months ago #25118
by Mr. Dam
Replied by Mr. Dam on topic Re: Date/Time Format Not Showing up Correctly in EMai
Hi Libby,
Please open some files bellow
components > com_osservicesbooking > classes > ajax.php
components > com_osservicesbooking > classes > default.php
components > com_osservicesbooking > classes > default.html.php
and find all :
date("H:i",
and change to :
date($configClass,
Open file :
components > com_osservicesbooking > classes > default.php
find
echo intval(date("d",$row->start_time))."/".intval(date("m",$row->start_time))."/".intval(date("Y",$row->start_time));
and replace by:
echo date($configClass,$row->start_time);
in file
components > com_osservicesbooking > classes > default.html.php
find
echo intval(date("d",$row->start_time))."/".intval(date("m",$row->end_time))."/".intval(date("Y",$row->start_time));
and change to
echo date($configClass,$row->start_time);
Good luck
Dam
Please open some files bellow
components > com_osservicesbooking > classes > ajax.php
components > com_osservicesbooking > classes > default.php
components > com_osservicesbooking > classes > default.html.php
and find all :
date("H:i",
and change to :
date($configClass,
Open file :
components > com_osservicesbooking > classes > default.php
find
echo intval(date("d",$row->start_time))."/".intval(date("m",$row->start_time))."/".intval(date("Y",$row->start_time));
and replace by:
echo date($configClass,$row->start_time);
in file
components > com_osservicesbooking > classes > default.html.php
find
echo intval(date("d",$row->start_time))."/".intval(date("m",$row->end_time))."/".intval(date("Y",$row->start_time));
and change to
echo date($configClass,$row->start_time);
Good luck
Dam
The following user(s) said Thank You: Libby Santin
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam
Support
Documentation
Information
Copyright © 2025 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.