Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dbulatovicx32 committed Jan 15, 2025
2 parents 842d6e9 + ef25c59 commit 90f3943
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/modules/qbe/qbeDialogs/qbeFilterDialog/QBEFilterDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 90f3943

Please sign in to comment.