Project

General

Profile

Actions

Feature #16484

closed

Add default timezone for new users

Added by Maxim Krušina over 10 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Administration
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

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.


Files

0001-Default-time-zone-for-new-users.patch (4.8 KB) 0001-Default-time-zone-for-new-users.patch Jan from Planio www.plan.io, 2016-12-17 12:38

Related issues

Related to Redmine - Feature #12444: Ability to "set as default" settings when creating usersNew

Actions
Actions #1

Updated by Sudhir B about 9 years ago

+1

Actions #2

Updated by Michal Dlouhy over 8 years ago

+1

Actions #3

Updated by Toshi MARUYAMA over 8 years ago

  • Related to Feature #12444: Ability to "set as default" settings when creating users added
Actions #4

Updated by Maxim Krušina about 8 years ago

still +1 :)

Actions #5

Updated by Jan from Planio www.plan.io about 8 years ago

  • Assignee set to Jan from Planio www.plan.io

We had built this for Planio a long time ago but it somehow never made it as a patch to Redmine.

I'll prepare one!

Actions #6

Updated by Jan from Planio www.plan.io about 8 years ago

Here it comes, looking forward to your feedback!

Actions #7

Updated by Maxim Krušina about 8 years ago

Thanx a lot, Jan!

Actions #8

Updated by Mischa The Evil about 8 years ago

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... ;)

Actions #9

Updated by Go MAEDA about 8 years ago

  • Target version set to Candidate for next major release
Actions #10

Updated by Go MAEDA almost 8 years ago

  • Assignee set to Jan from Planio www.plan.io

Jan, could you have a look at Mischa's comment? (#16484#note-8)

Actions #11

Updated by Jan from Planio www.plan.io almost 8 years ago

  • Assignee deleted (Jan from Planio www.plan.io)

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.

Actions #12

Updated by Go MAEDA almost 8 years ago

  • Target version changed from Candidate for next major release to 3.4.0
Actions #13

Updated by Mischa The Evil almost 8 years ago

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.

Actions #14

Updated by Jean-Philippe Lang almost 8 years ago

  • Subject changed from Add default timezone to Redmine config to Add default timezone for new users
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

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.

Actions

Also available in: Atom PDF