Skip to content
Snippets Groups Projects
Commit 953d5afd authored by Manuel Leduc's avatar Manuel Leduc
Browse files

XWIKI-19001: Selecting a custom date range exclude the last minute of the day

parent 23f5cdf6
No related branches found
Tags 6.7.1
No related merge requests found
......@@ -190,7 +190,7 @@ export default {
if (this.operator === "between") {
// Serialize the date range as a ISO 8601 time interval, without fractional seconds.
// See https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
return `${daterangepicker.startDate.format()}/${daterangepicker.endDate.format()}`
return `${daterangepicker.startDate.format()}/${daterangepicker.endDate.add(59, 'seconds').format()}`
} else if (this.operator === 'before' || this.operator === 'after') {
// Use the ISO 8601 representation, without fractional seconds.
return daterangepicker.startDate.format();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment