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
Use moment to parse the datestring correctly independent of the browser time zone. Otherwise a negative time zone would result in a date object which represents the day before the string.
Henriette Darge2e04889b1126
diff --git a/frontend/src/app/shared/components/datepicker/datepicker.modal.service.ts b/frontend/src/app/shared/components/datepicker/datepicker.modal.service.tsindex 993e0ba08ba..ff47bcdc28b 100644--- a/frontend/src/app/shared/components/datepicker/datepicker.modal.service.ts+++ b/frontend/src/app/shared/components/datepicker/datepicker.modal.service.ts@@ -169,7 +169,7 @@ export class DatepickerModalService {if (date === '') {return '';}- return new Date(new Date(date).setHours(0, 0, 0, 0));+ return new Date(moment(date).toDate().setHours(0, 0, 0, 0));}// eslint-disable-next-line class-methods-use-this