[RESOLVED] Date Format $ticket[dt] in ticket_list.inc.php

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
makingtrails
Posts: 4
Joined: Wed Nov 23, 2011 10:48 pm

[RESOLVED] Date Format $ticket[dt] in ticket_list.inc.php

Post by makingtrails »

Script URL: local
Version of script: 2.3
Hosting company: local (xampp - testing enviroment)
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

$ticket[dt] & ticket_list.inc.php

Write your message below:

Hi, This probably is not supported as it is a mod but I am attempted to rename a column in ticket_list.inc.php

I have renamed it "Created on" and have used $ticket[dt] to capture the date created from mySQL table hesk_tickets, dt field but this does not format the date unlike the same code used in admin_ticket.php (line 372)

Any ideas how I can apply the php date function (j S Y g:ia) on this line of code?

<td class="$color">ticket[dt]</td> (line 345 - Ticket_list.inc.php)

Thanks

J
Last edited by makingtrails on Thu Nov 24, 2011 1:44 pm, edited 1 time in total.
kabuc
Posts: 69
Joined: Tue Jun 21, 2011 6:32 am

Re: Date Format $ticket[dt] in ticket_list.inc.php

Post by kabuc »

Ticket_list.inc.php

find this 316 line

Code: Select all

$ticket['lastchange']=hesk_time_since(strtotime($ticket['lastchange']));
replace to this

Code: Select all

$ticket['dt']=date('j S Y g:ia', strtotime($ticket['dt']));
makingtrails
Posts: 4
Joined: Wed Nov 23, 2011 10:48 pm

[RESOLVED] Re: Date Format $ticket[dt] in ticket_list.inc.ph

Post by makingtrails »

Spot on!

Thank you very much!! :D
Post Reply