fixed time format

This commit is contained in:
Torsten Schulz
2024-07-09 17:36:52 +02:00
parent 7889baccd6
commit 45a6c4e78f
2 changed files with 9 additions and 5 deletions

View File

@@ -47,11 +47,11 @@
</tr>
<tr>
<td><label for="time">Uhrzeit:</label></td>
<td><input type="time" id="time" v-model="eventData.time"></td>
<td><input type="time" id="time">{{ formatTime(eventData.time) }}</td>
</tr>
<tr>
<td><label for="endTime">Ende-Uhrzeit:</label></td>
<td><input type="time" id="endTime" v-model="eventData.endTime"></td>
<td><input type="time" id="endTime">{{ formatTime(eventData.endTime) }}</td>
</tr>
<tr>
<td><label for="description">Beschreibung:</label></td>
@@ -105,6 +105,7 @@
<script>
import axios from 'axios';
import Multiselect from 'vue-multiselect';
import { formatTime } from '@/utils/strings';
export default {
name: 'EventForm',
@@ -184,6 +185,7 @@ export default {
this.determineDateMode();
},
methods: {
formatTime,
async saveEvent() {
try {
const payload = {