Fix the formatting of minutes in the assetManager.

This commit is contained in:
Colin Kuskie 2008-08-22 16:29:54 +00:00
parent 5048817adc
commit 53204db366
2 changed files with 5 additions and 1 deletions

View file

@ -157,9 +157,12 @@ WebGUI.AssetManager.formatRank
WebGUI.AssetManager.formatRevisionDate
= function ( elCell, oRecord, oColumn, orderNumber ) {
var revisionDate = new Date( oRecord.getData( "revisionDate" ) * 1000 );
var minutes = revisionDate.getMinutes();
if (minutes < 10)
minutes = "0" + minutes;
elCell.innerHTML = revisionDate.getFullYear() + '-' + ( revisionDate.getMonth() + 1 )
+ '-' + revisionDate.getDate() + ' ' + ( revisionDate.getHours() )
+ ':' + revisionDate.getMinutes()
+ ':' + minutes
;
};