Skip to content

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

show explanation when no time zone set

ulferts4913d67031b8
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 2962d9732e1..446232d759f 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -661,7 +661,8 @@ en:
daily:
add_time: 'Add time'
enable: 'Enable daily email reminders'
- explanation: 'You will receive these reminders only for unread notifications and only at hours you specify.'
+ explanation: 'You will receive these reminders only for unread notifications and only at hours you specify. %{no_time_zone}'
+ no_time_zone: 'Until you configure a time zone for your account, the times will be interpreted to be in UTC.'
time_label: 'Time %{counter}:'
title: 'Send me daily email reminders for unread notifications'
workdays:
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.ts
index 13e929f2797..75aff4808b3 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
@@ -21,6 +21,7 @@ import {
FormGroup,
FormGroupDirective,
} from '@angular/forms';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
@Component({
selector: 'op-reminder-settings-daily-time',
@@ -65,7 +66,8 @@ export class ReminderSettingsDailyTimeComponent implements OnInit {
text = {
title: this.I18n.t('js.reminders.settings.daily.title'),
- explanation: this.I18n.t('js.reminders.settings.daily.explanation'),
+ explanation: this.I18n.t('js.reminders.settings.daily.explanation',
+ { no_time_zone: this.configurationService.isTimezoneSet() ? '' : this.I18n.t('js.reminders.settings.daily.no_time_zone') }),
timeLabel: (counter:number):string => this.I18n.t('js.reminders.settings.daily.time_label', { counter }),
addTime: this.I18n.t('js.reminders.settings.daily.add_time'),
enable: this.I18n.t('js.reminders.settings.daily.enable'),
@@ -75,6 +77,7 @@ export class ReminderSettingsDailyTimeComponent implements OnInit {
private I18n:I18nService,
private storeService:UserPreferencesService,
private rootFormGroup:FormGroupDirective,
+ private configurationService:ConfigurationService,
) {
}