wow epic error cost -> const :( :( :( :(

This commit is contained in:
2026-01-18 13:53:35 +00:00
parent cd5ba4755d
commit 0c95354fad

View File

@@ -1,17 +1,20 @@
<script setup> <script setup>
import { ref } from "vue"; import { ref } from "vue";
cost time = ref("") const time = ref("");
cost weekday = ref("") const weekday = ref("");
cost day = ref("") const day = ref("");
cost month = ref("") const month = ref("");
function updateDateTime() { function updateDateTime() {
const date = new Date(); const date = new Date();
day.value = date.getDate(); day.value = date.getDate();
time.value = date.toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" }) time.value = date.toLocaleTimeString("en-GB", {
weekday.value = date.toLocaleDateString("en-GB", { weekday: "long" }); hour: "2-digit",
month.value = date.toLocaleDateString("en-GB", { month: "long" }); minute: "2-digit",
});
weekday.value = date.toLocaleDateString("en-GB", { weekday: "long" });
month.value = date.toLocaleDateString("en-GB", { month: "long" });
} }
updateDateTime(); updateDateTime();