diff --git a/src/views/mobile/transactions/Edit.vue b/src/views/mobile/transactions/Edit.vue index 80256b85..9ead7b44 100644 --- a/src/views/mobile/transactions/Edit.vue +++ b/src/views/mobile/transactions/Edit.vue @@ -391,6 +391,11 @@ export default { } }, 'transaction.time': function (newValue) { + if (!newValue) { + newValue = this.$utilities.formatDate(new Date(), 'YYYY-MM-DDTHH:mm'); + this.transaction.time = newValue; + } + this.transaction.unixTime = this.$utilities.getUnixTime(newValue); } },