Page 1 of 1

How to display date instead of time since updated?

Posted: Wed Sep 10, 2014 10:21 pm
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!

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

Posted: Thu Sep 11, 2014 8:08 am
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']);

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

Posted: Thu Sep 25, 2014 2:18 am
by redpants
Thanks! I'll try it and let you know if it worked!

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

Posted: Thu Sep 25, 2014 4:01 pm
by redpants
Worked like a charm, thanks again!