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
on calendar date.now is not used so no need to set the utc date
bsatarnejadffbfae633d53
diff --git a/frontend/src/app/features/calendar/op-calendar.service.ts b/frontend/src/app/features/calendar/op-calendar.service.tsindex e89acd098ca..042e22b22ea 100644--- a/frontend/src/app/features/calendar/op-calendar.service.ts+++ b/frontend/src/app/features/calendar/op-calendar.service.ts@@ -36,10 +36,8 @@ export class OpCalendarService extends UntilDestroyedMixin {applyNonWorkingDay({ date }:{ date?:Date }, nonWorkingDays:IDay[]):string[] {if (date) {- // we need to find the UTC date for each date while highlighting non-wrking days on full-calendar- const utcDate = new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());- const formatted = moment(utcDate).format('YYYY-MM-DD');- if (this.weekdayService.isNonWorkingDay(utcDate) || nonWorkingDays.find((el) => el.date === formatted)) {+ const formatted = moment(date).format('YYYY-MM-DD');+ if (this.weekdayService.isNonWorkingDay(date) || nonWorkingDays.find((el) => el.date === formatted)) {return ['fc-non-working-day'];}}