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>
import { ref } from "vue";
cost time = ref("")
cost weekday = ref("")
cost day = ref("")
cost month = ref("")
const time = ref("");
const weekday = ref("");
const day = ref("");
const month = ref("");
function updateDateTime() {
const date = new Date();
day.value = date.getDate();
time.value = date.toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" })
weekday.value = date.toLocaleDateString("en-GB", { weekday: "long" });
month.value = date.toLocaleDateString("en-GB", { month: "long" });
const date = new Date();
day.value = date.getDate();
time.value = date.toLocaleTimeString("en-GB", {
hour: "2-digit",
minute: "2-digit",
});
weekday.value = date.toLocaleDateString("en-GB", { weekday: "long" });
month.value = date.toLocaleDateString("en-GB", { month: "long" });
}
updateDateTime();