fix: update date formatting in VnJsonValue component to include hours, minutes, and seconds
gitea/salix-front/pipeline/pr-master Something is wrong with the build of this commit Details

This commit is contained in:
Alex Moreno 2025-04-04 08:53:05 +02:00
parent c700521b37
commit 103835d08b
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<script setup>
import { watch } from 'vue';
import { toDateString } from 'src/filters';
import { toDateHourMinSec } from 'src/filters';
const props = defineProps({
value: { type: [String, Number, Boolean, Object], default: undefined },
@ -40,7 +40,9 @@ const updateValue = () => {
break;
case 'object':
if (props.value instanceof Date) {
t = toDateString(props.value);
console.log('props.value: ', props.value);
t = toDateHourMinSec(props.value);
console.log('t: ', t);
} else {
t = props.value.toString();
}