Page 1 of 1

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

Posted: Wed Nov 23, 2011 11:29 pm
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

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

Posted: Thu Nov 24, 2011 7:19 am
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']));

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

Posted: Thu Nov 24, 2011 1:37 pm
by makingtrails
Spot on!

Thank you very much!! :D