Skip to content

Commit

Permalink
Always use end of time unit for "to" date in range
Browse files Browse the repository at this point in the history
  • Loading branch information
pgiraud authored and rjuju committed Jan 13, 2025
1 parent 3883abd commit e74d6a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powa/static/js/composables/DateRangeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const defaultTo = "now";
const rawTo = ref(defaultTo);

const from = ref(dateMath.parse(defaultFrom));
const to = ref(dateMath.parse(defaultTo), true);
const to = ref(dateMath.parse(defaultTo, true));

function getUrl(url) {
const query = {};
Expand All @@ -27,7 +27,7 @@ export function useDateRangeService() {

function refresh() {
from.value = dateMath.parse(rawFrom.value);
to.value = dateMath.parse(rawTo.value);
to.value = dateMath.parse(rawTo.value, true);
}

return {
Expand Down

0 comments on commit e74d6a9

Please sign in to comment.