diff --git a/dist/extendedPlayerProfile.js b/dist/extendedPlayerProfile.js
index ba08830..f1dc0dd 100644
--- a/dist/extendedPlayerProfile.js
+++ b/dist/extendedPlayerProfile.js
@@ -254,11 +254,11 @@ exports.default = void 0;
var _default = (date, options) => {
return new Date(date).toLocaleDateString(window.game_data.locale.replace('_', '-'), options ? options : {
year: 'numeric',
- month: 'numeric',
- day: 'numeric',
- hour: 'numeric',
- minute: 'numeric',
- second: 'numeric'
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit'
});
};
@@ -542,8 +542,8 @@ const renderPlayerOtherNames = player => {
playerOtherNames.innerHTML = "\n
\n \n \n \n Old name\n | \n \n New name\n | \n \n Date\n | \n
\n ".concat(player.nameChanges.map(nameChange => {
return "\n \n \n ".concat(nameChange.oldName, "\n | \n \n ").concat(nameChange.newName, "\n | \n \n ").concat((0, _formatDate.default)(nameChange.changeDate, {
year: 'numeric',
- month: 'numeric',
- day: 'numeric'
+ month: '2-digit',
+ day: '2-digit'
}), "\n | \n
\n ");
}).join(''), "\n \n
\n ");
};
diff --git a/dist/latestEnnoblements.js b/dist/latestEnnoblements.js
index df42c3b..823a873 100644
--- a/dist/latestEnnoblements.js
+++ b/dist/latestEnnoblements.js
@@ -218,11 +218,11 @@ exports.default = void 0;
var _default = (date, options) => {
return new Date(date).toLocaleDateString(window.game_data.locale.replace('_', '-'), options ? options : {
year: 'numeric',
- month: 'numeric',
- day: 'numeric',
- hour: 'numeric',
- minute: 'numeric',
- second: 'numeric'
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit'
});
};
diff --git a/src/extendedPlayerProfile.js b/src/extendedPlayerProfile.js
index 837a076..40d00d2 100644
--- a/src/extendedPlayerProfile.js
+++ b/src/extendedPlayerProfile.js
@@ -270,8 +270,8 @@ const renderPlayerOtherNames = (player) => {
${formatDate(nameChange.changeDate, {
year: 'numeric',
- month: 'numeric',
- day: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
})}
|
diff --git a/src/utils/formatDate.js b/src/utils/formatDate.js
index 5e0347f..1618c80 100644
--- a/src/utils/formatDate.js
+++ b/src/utils/formatDate.js
@@ -5,11 +5,11 @@ export default (date, options) => {
? options
: {
year: 'numeric',
- month: 'numeric',
- day: 'numeric',
- hour: 'numeric',
- minute: 'numeric',
- second: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
}
);
};