Page 1 of 1

old data format

Posted: Sat Mar 02, 2013 9:28 pm
by mfratoni
Script URL:
Version of script: 2.4.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hello, I upgraded from version 2.2 to version 2.4.2.
I noticed that the home page, in the list of open tickets, the date format displayed next to each ticket has changed.
in the old version was displayed on a given now the number of days and hours.
you can restore the old format?

thanks

Re: old data format

Posted: Sun Mar 03, 2013 11:08 am
by Klemen
In inc/ticket_list.inc.php change this code

Code: Select all

$ticket['lastchange']=hesk_time_since(strtotime($ticket['lastchange']));
To this one:

Code: Select all

$ticket['lastchange']=hesk_formatDate($ticket['lastchange']);