mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 10:29:11 +00:00
Merge "Avoid localized digits in internal timestamps in JS"
This commit is contained in:
commit
873ea3cd38
|
@ -52,7 +52,8 @@ CommentItem.prototype.getTimestampString = function () {
|
|||
if ( this.timestamp < switchTime ) {
|
||||
return this.timestamp.toISOString();
|
||||
} else {
|
||||
return this.timestamp.format( 'YYYYMMDDHHmmss' );
|
||||
// Switch to English locale to avoid number formatting
|
||||
return this.timestamp.locale( 'en' ).format( 'YYYYMMDDHHmmss' );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue