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
[RESOLVED] Date Format $ticket[dt] in ticket_list.inc.php
Moderator: mkoch227
-
- Posts: 4
- Joined: Wed Nov 23, 2011 10:48 pm
[RESOLVED] Date Format $ticket[dt] in ticket_list.inc.php
Last edited by makingtrails on Thu Nov 24, 2011 1:44 pm, edited 1 time in total.
Re: Date Format $ticket[dt] in ticket_list.inc.php
Ticket_list.inc.php
find this 316 line
replace to this
find this 316 line
Code: Select all
$ticket['lastchange']=hesk_time_since(strtotime($ticket['lastchange']));
Code: Select all
$ticket['dt']=date('j S Y g:ia', strtotime($ticket['dt']));
-
- Posts: 4
- Joined: Wed Nov 23, 2011 10:48 pm
[RESOLVED] Re: Date Format $ticket[dt] in ticket_list.inc.ph
Spot on!
Thank you very much!!
Thank you very much!!
