old data format

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
mfratoni
Posts: 3
Joined: Fri Jan 28, 2011 2:59 pm

old data format

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

Re: old data format

Post 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']);
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