diff --git a/src/VueCtkDateTimePicker/_subs/PickersContainer/_subs/TimePicker.vue b/src/VueCtkDateTimePicker/_subs/PickersContainer/_subs/TimePicker.vue index 7aad9f85..64e6df77 100644 --- a/src/VueCtkDateTimePicker/_subs/PickersContainer/_subs/TimePicker.vue +++ b/src/VueCtkDateTimePicker/_subs/PickersContainer/_subs/TimePicker.vue @@ -405,7 +405,7 @@ emitValue () { const tmpHour = this.hour ? this.hour : this.getAvailableHour() let hour = this.isTwelveFormat && (tmpHour === 24 || tmpHour === 12) - ? this.apm.toLowerCase() === 'am' ? 0 : 12 + ? this.apm && this.apm.toLowerCase() === 'am' ? 0 : 12 : tmpHour hour = (hour < 10 ? '0' : '') + hour const minute = this.minute ? (this.minute < 10 ? '0' : '') + this.minute : '00'