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
Format legend to use creating user's time
Oliver Günther0b2ad107a1e1
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.ts b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.tsindex 261f36a9dfe..6cae3daae1d 100644--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.ts@@ -152,10 +152,13 @@ export class OpBaselineLegendsComponent {}private getFormattedDate(date:string, time:string):string {- const combined = moment- .tz(`${date}T${time}`, this.timezoneService.userTimezone());+ const combined = moment(`${date}T${time}`);- return `${combined.format(this.timezoneService.getDateFormat())} ${combined.format(this.timezoneService.getTimeFormat())}`;+ const formattedDate = combined.format(this.timezoneService.getDateFormat());+ const formattedTime = combined.format(this.timezoneService.getTimeFormat());+ const offset = combined.format('Z');++ return `${formattedDate} ${formattedTime} ${offset}`;}private visibleAttributeChanged(base:IWorkPackageTimestamp, schema:ISchemaProxy):boolean {