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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
change the filter buliding for static values like yesterday
bsatarnejad580b1eea5dff
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 84985b3abb5..bb2f2ae9425 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -1350,7 +1350,7 @@ en:apply: 'Apply'header_description: 'View changes made to work packages in the current view within a time period.'show_changes_since: 'Show changes since'- help_description: 'Default time zone of the instance set by the administrator.'+ help_description: 'Reference time zone for the baseline.'time_description: 'In your local time: %{datetime}'time: 'Time'from: 'From'diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.tsindex 228bf1b6a59..8b12120f18b 100644--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts@@ -235,7 +235,7 @@ export class OpBaselineComponent extends UntilDestroyedMixin implements OnInit {case 'oneWeekAgo':case 'oneMonthAgo':case 'lastWorkingDay':- return [this.buildISOString(0), DEFAULT_TIMESTAMP];+ return [this.buildFilterString(0)];case 'aSpecificDate':return [this.buildISOString(0), DEFAULT_TIMESTAMP];case 'betweenTwoSpecificDates':@@ -252,4 +252,9 @@ export class OpBaselineComponent extends UntilDestroyedMixin implements OnInit {const date = moment.tz(`${this.selectedDates[i]}T${this.selectedTimes[i]}`, this.configuration.defaultTimezone());return date.toISOString();}++ private buildFilterString(i:number):string {+ const dateTime= `${this.selectedDates[i]} ${this.selectedTimes[i]}`;+ return `${this.selectedFilter}@${this.timezoneService.formattedTime(dateTime, 'HH:mmZ')}`;+ }}