Fix the formatting of minutes in the assetManager.
This commit is contained in:
parent
5048817adc
commit
53204db366
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue