Page 1 of 1

Date format messed up under updated column

Posted: Sun Dec 04, 2011 2:30 pm
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

Re: Date format messed up under updated column

Posted: Sun Dec 04, 2011 3:19 pm
by Klemen

Re: Date format messed up under updated column

Posted: Sun Dec 04, 2011 4:11 pm
by vinman57
thanks. sorry for bringing the subject again, but I couldn't seem to find the issue in the forum

Re: Date format messed up under updated column

Posted: Sun Dec 04, 2011 4:52 pm
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

Re: Date format messed up under updated column

Posted: Sun Dec 04, 2011 5:15 pm
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.

Re: Date format messed up under updated column

Posted: Sun Dec 04, 2011 7:39 pm
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

Re: Date format messed up under updated column

Posted: Fri Dec 16, 2011 4:56 pm
by vinman57
Thanks Klemen

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