Merge "Avoid localized digits in internal timestamps in JS"

This commit is contained in:
jenkins-bot 2022-07-13 17:35:46 +00:00 committed by Gerrit Code Review
commit 873ea3cd38

View file

@ -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' );
}
};