Date/Time Format Not Showing up Correctly in EMai

  • Libby Santin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #25103 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
Attachments:

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

More
11 years 2 months ago #25118 by Mr. Dam
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
The following user(s) said Thank You: Libby Santin

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

Moderators: Mr. Dam