Script URL:
Version of script: 2.50
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:
Mister klemen,
Any chance of getting some help on adding a "last updated time and date" field to the reports?
This was discussed in the 2.50 beta thread where you said it shouldn't be hard to do, but I guess it didn't make it into the final release.
Any help with this would be greatly appreciated.
last updated field added to reports.
Moderator: mkoch227
Re: last updated field added to reports.
I have learned from experience that after beta it is not wise to add new functionality to the final version, something is bound to break
This should do the trick, haven't tested it though:
In admin/export.php find
After this add
Find
After this add
Find
After this add

This should do the trick, haven't tested it though:
In admin/export.php find
Code: Select all
<Cell><Data ss:Type="String">'.$hesklang['ts'].'</Data></Cell>
Code: Select all
<Cell><Data ss:Type="String">'.$hesklang['last_update'].'</Data></Cell>
Code: Select all
$ticket['dt'] = date("Y-m-d\TH:i:s\.000", strtotime($ticket['dt']));
Code: Select all
$ticket['lastchange'] = date("Y-m-d\TH:i:s\.000", strtotime($ticket['lastchange']));
Code: Select all
<Cell><Data ss:Type="String"><![CDATA['.$ticket['time_worked'].']]></Data></Cell>
Code: Select all
<Cell ss:StyleID="s62"><Data ss:Type="DateTime">'.$ticket['lastchange'].'</Data></Cell>
Last edited by Klemen on Thu Jul 18, 2013 1:26 pm, edited 1 time in total.
Reason: Fixed wrong variable name
Reason: Fixed wrong variable name
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: last updated field added to reports.
Ok, assuming I inserted the code correctly. We all know how that goes since I'm an idiot.
Anyways, it appears to be correctly inserting the last worked time and date. However the header cell is not populated with anything. Did I miss something or is there another file that I need to edit?
Thank you so much for your help.
Anyways, it appears to be correctly inserting the last worked time and date. However the header cell is not populated with anything. Did I miss something or is there another file that I need to edit?
Thank you so much for your help.
Re: last updated field added to reports.
$hesklang['lastchange'] should actually be $hesklang['last_update']
I modified the original code to have the correct value.
I modified the original code to have the correct value.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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