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

@ -1,6 +1,7 @@
7.6.0
- remove Do Nothing On Delete workflow and allow none to be selected for on delete etc workflow
- remove remnants of realtime workflow selection code
- fixed: Asset view time format problem
7.5.22
- fixed: Layout template now gets prepared correctly

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
;
};