diff --git a/src/tools/date-time-converter/date-time-converter.vue b/src/tools/date-time-converter/date-time-converter.vue
index 425728e4..3f182db4 100644
--- a/src/tools/date-time-converter/date-time-converter.vue
+++ b/src/tools/date-time-converter/date-time-converter.vue
@@ -40,7 +40,7 @@
{{ name }}
-
+
@@ -57,11 +57,11 @@ const useCurrentDate = ref(true)
const inputDate = ref('')
const inputFormat = ref(6)
const inputInvalid = ref(false)
-const date = ref(new Date())
+const baseDate = ref(new Date())
useRafFn(() => {
if (useCurrentDate.value) {
- date.value = new Date()
+ baseDate.value = new Date()
}
})
@@ -76,7 +76,7 @@ function onDateInputChanged(value: string) {
throw 'invalid date'
}
- date.value = formatted
+ baseDate.value = formatted
} catch (_) {
inputInvalid.value = true
}