logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
shawnkhall  
#1 Posted : Thursday, May 11, 2017 11:12:18 PM(UTC)
shawnkhall


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 2/6/2014(UTC)
Posts: 166
Man
United States

Thanks: 5 times
Was thanked: 8 time(s) in 6 post(s)
Open Initializer.js and change line 37 from this:

Code:
var dlFileName = (SC.res['Extension.DownloadAuditLogAsCSV.DownloadFile.BaseName'] + (SC.res['Extension.DownloadAuditLogAsCSV.DownloadFile.IncludeTimestamp'] == 'true' ? " " + obj_2baab7c59ea74cfe8907626536af1b17.minTimeBox.value + " - " + obj_2baab7c59ea74cfe8907626536af1b17.maxTimeBox.value : '') + "." + SC.res['Extension.DownloadAuditLogAsCSV.DownloadFile.Extension']).replace(/[^a-z0-9.,_\-\s]/gi, '-');


To this:

Code:
var dlFileName = (SC.res['Extension.DownloadAuditLogAsCSV.DownloadFile.BaseName'] + (SC.res['Extension.DownloadAuditLogAsCSV.DownloadFile.IncludeTimestamp'] == 'true' ? " " + toLocalIsoString(new Date(obj_2baab7c59ea74cfe8907626536af1b17.minTimeBox.value)) + " - " + toLocalIsoString(new Date(obj_2baab7c59ea74cfe8907626536af1b17.maxTimeBox.value)) : '') + "." + SC.res['Extension.DownloadAuditLogAsCSV.DownloadFile.Extension']).replace(/[^a-z0-9.,_\-\s]/gi, '-');


Then scroll to the top and add this at line 2:

Code:
function toLocalIsoString(date) {
    function pad(n) { return n < 10 ? '0' + n : n }
    var localIsoString = date.getFullYear() + '-'
        + pad(date.getMonth() + 1) + '-'
        + pad(date.getDate()) + 'T'
        + pad(date.getHours()) + ':'
        + pad(date.getMinutes()) + ':'
        + pad(date.getSeconds());
    if(date.getTimezoneOffset() == 0) localIsoString += 'Z';
    return localIsoString;
};


Next time you export you'll get files like "ScreenConnectAudit 2017-04-01T00-00-00 - 2017-05-01T00-00-00.csv" instead of "ScreenConnectAudit 4-1-2017 12-00-00 AM - 5-1-2017 12-00-00 AM.csv".

Now to rename all my logs.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.