Date format messed up under updated column

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Date format messed up under updated column

Post by vinman57 »

Script URL: www.cybermidi.com/help/
Version of script: hesk 2.3
Hosting company: powweb
URL of phpinfo.php: /
URL of session_test.php:
What terms did you try when SEARCHING for a solution: date, date format

Looking in admin area at the tickets

The column under "updated" is no longer showing a date (for last upated)

Instead, I see things like:

11mo2w
1w4d
2y6mo

etc.

Please advise solution.

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

Re: Date format messed up under updated column

Post by Klemen »

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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Date format messed up under updated column

Post by vinman57 »

thanks. sorry for bringing the subject again, but I couldn't seem to find the issue in the forum
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Date format messed up under updated column

Post by Klemen »

Code: Select all

the "updated" column now shows how many seconds, minutes, hours, days... ago the ticket has been updated. 

For example 17m52s means the ticket has been updated 17 minutes and 52 seconds ago. 
7h33m means ticket was updates 7 hours 33 minutes ago.
2w3d means 2 weeks and 3 days ago.

Possible values are:
s - seconds
m - minutes
h - hours 
d - days
w - weeks
mo - months
y - years
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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Date format messed up under updated column

Post by vinman57 »

thanks again, but already figured it out from your link.

Do you users prefer this method? Actually, just the date and time of last update works for me rather than figuring this "code" out.

not a big deal I guess.
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Date format messed up under updated column

Post by Klemen »

Once you know what it means it's much easier and quicker to determine recently updated tickets.

However, if you prefer the old format you can open file "inc/ticket_list.inc.php" and replace

Code: Select all

hesk_time_since
with

Code: Select all

hesk_formatDate
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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Date format messed up under updated column

Post by vinman57 »

Thanks Klemen

It took a little getting used to, but it's fine as is.
Post Reply