How to display date instead of time since updated?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
redpants
Posts: 3
Joined: Wed Sep 10, 2014 10:11 pm

How to display date instead of time since updated?

Post by redpants »

Script URL: Internal local network URL
Version of script: 2.5.3
Hosting company: Self-hosted
URL of phpinfo.php: Internal local network URL
URL of session_test.php: Internal local network URL
What terms did you try when SEARCHING for a solution:
display date
open ticket updated date

Write your message below:

Is there a way to change the Updated column under Open tickets to reflect date and time instead of the amount of time that has passed since last updated? In other words, I would like it to show something like 9/9/2014 10:03AM instead of 2d4h.

Thanks!
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to display date instead of time since updated?

Post by Klemen »

You can try replacing this code in file inc/ticket_list.inc.php

Code: Select all

$ticket['lastchange']=hesk_time_since(strtotime($ticket['lastchange']));
with

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
redpants
Posts: 3
Joined: Wed Sep 10, 2014 10:11 pm

Re: How to display date instead of time since updated?

Post by redpants »

Thanks! I'll try it and let you know if it worked!
redpants
Posts: 3
Joined: Wed Sep 10, 2014 10:11 pm

Re: How to display date instead of time since updated?

Post by redpants »

Worked like a charm, thanks again!
Post Reply