Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Change available time span for date picker from the last 15 years to the next 20

Henriette Darge3df7918df60c
diff --git a/frontend/src/app/modules/common/op-date-picker/datepicker.ts b/frontend/src/app/modules/common/op-date-picker/datepicker.ts
index c16d316b4f3..9964a81873c 100644
--- a/frontend/src/app/modules/common/op-date-picker/datepicker.ts
+++ b/frontend/src/app/modules/common/op-date-picker/datepicker.ts
@@ -55,7 +55,8 @@ export class DatePicker {
closeText: I18n.t('js.button_confirm'),
dateFormat: this.datepickerFormat,
defaultDate: this.timezoneService.formattedISODate(this.date),
- showButtonPanel: true
+ showButtonPanel: true,
+ yearRange: "-15:+20"
});
this.datepickerInstance = this.datepickerCont.datepicker(mergedOptions);