Skip to content

Commit

Permalink
Update CHANGELG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Nov 7, 2023
1 parent 1a7d9a1 commit dbc0c0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions components/Epoch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`;
Expand Down

0 comments on commit dbc0c0d

Please sign in to comment.