プロジェクト

全般

プロフィール

Vote #75107

完了

Add default timezone for new users

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Administration_8
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
8
version_id:
119
issue_org_id:
16484
author_id:
574
assigned_to_id:
1
comments:
14
status_id:
5
tracker_id:
2
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Hi, it would be really nice to have ability to set default time zone (for newly created users) somewhere in redmine admin.
Coz 99% od users I'm adding are from Prague (or Czech Republic :), so everytime I'm adding users, I have to find our timezone in a looong list.
Configurable timezone can prepopuate this filed - big timesaver!

PS: also it can be done via detecting current browser's timezone (not sure if this is possible), but the first solution will be easier, IMHO.


journals

+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
still +1 :)
--------------------------------------------------------------------------------
We had built this for "Planio":https://Plan.io a long time ago but it somehow never made it as a patch to Redmine.

I'll prepare one!
--------------------------------------------------------------------------------
Here it comes, looking forward to your feedback!
--------------------------------------------------------------------------------
Thanx a lot, Jan!
--------------------------------------------------------------------------------
Jan from Planio www.plan.io wrote:
> Here it comes, looking forward to your feedback!

Hi Jan, at first, thanks for sharing your solution. Second, I noticed the (direct) message(s) to @ActiveSupport::TimeZone@ in the patch and wondered if it/they could be refactored to make use of the @time_zone_select@ specific helper to make the implementation more in line with the one used for the @users/_preferences.html.erb@ template (r9744)? I'm not sure though whether or not the helper is available for use in the @settings/_general.html.erb@ template. However, I'm not able to try this myself at the moment, so I have to keep it with this comment. I hope it is of any use... ;)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Jan, could you have a look at Mischa's comment? (#16484#note-8)
--------------------------------------------------------------------------------
Mischa The Evil wrote:
> Second, I noticed the (direct) message(s) to @ActiveSupport::TimeZone@ in the patch and wondered if it/they could be refactored to make use of the @time_zone_select@ specific helper to make the implementation more in line with the one used for the @users/_preferences.html.erb@ template (r9744)?

Thanks! I thought about that, but wanted to be more consistent with the rest of the settings by using the @setting_*@ helpers.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Jan from Planio www.plan.io wrote:
> Mischa The Evil wrote:
> > [...]
>
> Thanks! I thought about that, but wanted to be more consistent with the rest of the settings by using the @setting_*@ helpers.

I see. That makes perfect sense to me.
--------------------------------------------------------------------------------
Since it's a default value for new users, I've reworked the patch a bit to make it on par with the existing @default_users_hide_mail@ setting. The setting is added to the "Default values for new users" block in application settings (Authentification tab).
Thanks.
--------------------------------------------------------------------------------


related_issues

relates,New,12444,Ability to "set as default" settings when creating users

Admin Redmine さんが3年以上前に更新

  • カテゴリAdministration_8 にセット
  • 対象バージョン3.4.0_119 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0