mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-14 19:24:42 +00:00
Merge "Inline trivial single-use method in the Revision class"
This commit is contained in:
commit
7a5e15527e
|
@ -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' );
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue