display time since created on admin page

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
smegnl
Posts: 24
Joined: Wed Jun 20, 2012 8:40 pm

display time since created on admin page

Post 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.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: display time since created on admin page

Post 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).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply