mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-07 16:25:37 +00:00
12 lines
299 B
TypeScript
12 lines
299 B
TypeScript
export default {
|
|
mounted() {
|
|
this.updated();
|
|
},
|
|
updated() {
|
|
const dt = new Date(Number(this.el.textContent));
|
|
const options = { hour12: false, timeZone: 'UTC' };
|
|
this.el.textContent = `${dt.toLocaleString('en-US', options)}`;
|
|
this.el.classList.remove('invisible');
|
|
},
|
|
};
|