Merge "Inline trivial single-use method in the Revision class"

This commit is contained in:
jenkins-bot 2023-12-07 10:52:32 +00:00 committed by Gerrit Code Review
commit 7a5e15527e

View file

@ -103,19 +103,11 @@ $.extend( Revision.prototype, {
/**
* Uses moment.js to format the date
*
* @param {string} rawDate
* @return {string}
*/
formatDate: function ( rawDate ) {
const offset = parseInt( userOffset );
return moment( rawDate ).utcOffset( offset ).format( 'LLL' );
},
/**
* @return {string}
*/
getFormattedDate: function () {
return this.formatDate( this.timestamp );
const offset = parseInt( userOffset );
return moment( this.timestamp ).utcOffset( offset ).format( 'LLL' );
},
/**