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
[#44300] work-around with converting moment js to JS Date
Dmitrii49845176d4c6
diff --git a/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.ts b/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.tsindex 6527c49b8ae..1018c1423a2 100644--- a/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.ts+++ b/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.ts@@ -22,6 +22,7 @@ import {FormGroupDirective,} from '@angular/forms';import { ConfigurationService } from 'core-app/core/config/configuration.service';+import * as moment from 'moment';@Component({selector: 'op-reminder-settings-daily-time',@@ -242,10 +243,10 @@ export class ReminderSettingsDailyTimeComponent implements OnInit {}private static dateForHour(hour:number) {- const date = new Date();- date.setTime(1000 * 60 * 60 * (hour - 1));- date.setMinutes(0);+ const currentTime = new Date();+ currentTime.setTime(1000 * 60 * 60 * (hour - 1));+ const convertTimeObject = new Date(moment(currentTime).utc().hours(hour).format('YYYY-MM-DDTHH:mm:ss'));- return date;+ return convertTimeObject;}}