diff --git a/src/modules/qbe/qbeDialogs/qbeFilterDialog/QBEFilterDialog.vue b/src/modules/qbe/qbeDialogs/qbeFilterDialog/QBEFilterDialog.vue index a1bd7111d..8d87e411d 100644 --- a/src/modules/qbe/qbeDialogs/qbeFilterDialog/QBEFilterDialog.vue +++ b/src/modules/qbe/qbeDialogs/qbeFilterDialog/QBEFilterDialog.vue @@ -285,9 +285,17 @@ export default defineComponent({ if (momentDate.isValid()) { const formattedDate = momentDate.format(serverFormat) - filter.rightOperandDescription = formattedDate + const properDateForAPI = this.truncateDateTimeForAPI(formattedDate) + filter.rightOperandValue = [properDateForAPI] + filter.rightOperandDescription = properDateForAPI } }, + truncateDateTimeForAPI(dateTime: string | null | undefined) { + if (!dateTime || dateTime.trim() === '') { + return '' + } + return dateTime.split(' ')[0] + }, onParametersUpdated(updatedParameters: any[]) { this.updatedParameters = updatedParameters },