wow epic error cost -> const :( :( :( :(
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user