Skip to content

Commit

Permalink
fix: week to custom toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Sep 19, 2024
1 parent ada416b commit 8b2bbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rum/elements/daterange-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default class TimeRangePicker extends HTMLElement {
if (value === 'week') {
if (!fromElement.value) {
const lastWeek = now;
lastWeek.setHours(7 * 24, 0, 0, 0);
lastWeek.setHours(-7 * 24, 0, 0, 0);
fromElement.value = toDateString(lastWeek);
}
if (!toElement.value) {
Expand Down

0 comments on commit 8b2bbce

Please sign in to comment.