Page 1 of 1

display time since created on admin page

Posted: Mon Aug 05, 2013 5:56 pm
by smegnl
Script URL: support.highlandschools.org
Version of script: 2.5
Hosting company: self
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Any I could think of, time, open, display, admin panel.
Write your message below:

I have customized the admin open tickets page to show some custom categories and IDs. I would like to show time since the ticket was created. I could do this in place of "updated" or in addition too.

Thanks in advance for your help.

Re: display time since created on admin page

Posted: Tue Aug 06, 2013 4:59 pm
by Klemen
You could use something like

Code: Select all

$ticket['dt']=hesk_time_since(strtotime($ticket['dt']));

This would store the time since creation in the $ticket['dt'] variable (inc/ticket_list.inc.php).