Skip to content

Commit 4977e54

Browse files
committed
rename
1 parent e47aa71 commit 4977e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/webcomponents/absolute-date.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ window.customElements.define('absolute-date', class extends HTMLElement {
1414

1515
// only extract the first 10 characters, e.g. the `yyyy-mm-dd` part
1616
const [isoYear, isoMonth, isoDate] = this.getAttribute('date').substring(0, 10).split('-');
17-
const date = new Temporal.PlainDate(isoYear, isoMonth, isoDate);
17+
const plainDate = new Temporal.PlainDate(isoYear, isoMonth, isoDate);
1818
if (!this.shadowRoot) this.attachShadow({mode: 'open'});
19-
this.shadowRoot.textContent = date.toLocaleString(lang ?? [], {
19+
this.shadowRoot.textContent = plainDate.toLocaleString(lang ?? [], {
2020
...(year && {year}),
2121
...(month && {month}),
2222
...(weekday && {weekday}),

0 commit comments

Comments
 (0)