Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1928417 Change default start in GUI to 1 month before now #1863

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gui/mozregui/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class BuildSelectionPage(WizardPage):
def __init__(self):
WizardPage.__init__(self)
now = QDate.currentDate()
self.ui.start.ui.date.setDate(now.addYears(-1))
self.ui.start.ui.date.setDate(now.addMonths(-1))
self.ui.end.ui.date.setDate(now)
self.ui.find_fix.stateChanged.connect(self.change_labels)

Expand Down
2 changes: 1 addition & 1 deletion gui/tests/test_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ def test_wizard(mocker, qtbot, os, bits, wizard_class, pages):
if isinstance(wizard, SingleRunWizard):
assert options["launch"] == now.addDays(-3).toPython()
else:
assert options["good"] == now.addYears(-1).toPython()
assert options["good"] == now.addMonths(-1).toPython()
assert options["bad"] == now.toPython()