Compare commits

...

1 Commits

Author SHA1 Message Date
Cory LaViska
74fcf5f3ae remove unused var 2024-06-24 10:10:22 -04:00

View File

@@ -31,7 +31,6 @@ export default class WaRelativeTime extends WebAwesomeElement {
@state() private isoTime = '';
@state() private relativeTime = '';
@state() private titleTime = '';
/**
* The date from which to calculate time from. If not set, the current date and time will be used. When passing a
@@ -72,15 +71,6 @@ export default class WaRelativeTime extends WebAwesomeElement {
const { unit, value } = availableUnits.find(singleUnit => Math.abs(diff) < singleUnit.max)!;
this.isoTime = then.toISOString();
this.titleTime = this.localize.date(then, {
month: 'long',
year: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
timeZoneName: 'short'
});
this.relativeTime = this.localize.relativeTime(Math.round(diff / value), unit, {
numeric: this.numeric,
style: this.format