Page 1 of 1

Hesk Date Format

Posted: Wed Oct 25, 2006 5:23 pm
by hapless
Script URL:www.jarrowschool.co.uk
Version of script:
Hosting company:totalchoicehosting.com
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:date format

Write your message below:

Can anyone tell me hoe to change the date format in Hesk to read
DD-MM-YYYY


Thanks for a great script Klemen - working great in 2 schools!!

Posted: Sat Oct 28, 2006 12:34 pm
by Klemen
Hi,

The YYYY-MM-DD hh:mm:ss is format of the "datetime" columns in MySQL and I don't think that can be changed. To completely change the date handling it would require more editing and is unfortunately out of the scope of my support. Sorry!

But to point you into the right direction, you could use something like

Code: Select all

$ticket['dt']=date('d-m-Y', strtotime($ticket['dt']));
before printing out the date in print_tickets.inc.php, admin_ticket.php, ticket.php and print.php

Regards

date/time

Posted: Sat Oct 28, 2006 1:34 pm
by hapless
hi Stern,

many thanks for that - just having some moans from teachers as they cant seem to work out the date in its current format! we don't have a problem as a department though

regards

mark j