diff --git a/CHANGELOG.md b/CHANGELOG.md index 4383fc1..5eb7840 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ ## Version History +### v3.16.1 + +- :bug: `Epoch`: Fix assignmnet to constant + ### v3.16.0 - :rocket: `Epoch`: Put time last in Human date format diff --git a/components/Epoch.vue b/components/Epoch.vue index 1786867..83049af 100644 --- a/components/Epoch.vue +++ b/components/Epoch.vue @@ -51,9 +51,9 @@ export default { let suffix = this.suffix[day.slice(day.length - 1)] || 'th'; if (['11', '12', '13'].includes(day)) suffix = 'th'; - const res = `${this.months[date.getUTCMonth()]} ${date.getUTCDate()}${suffix}`; + let res = `${this.months[date.getUTCMonth()]} ${date.getUTCDate()}${suffix}`; if (date.getFullYear() !== new Date().getFullYear()) { - return res + ` ${date.getFullYear()}`; + res + ` ${date.getFullYear()}`; } res = res + `, ${String(date.getUTCHours()).padStart(2, '0')}:${String(date.getMinutes()).padEnd(2, '0')}`;